I have been looking through the different data types in OpenCV, and came across the Scalar data type. However, I couldn't figure out why this data type exists?
Specifically:
- Isn't scalar by its mathematical definition just a one-dimensional quantity with a magnitude?
- What types of operations is it supposed to be used for (vs. a 4-dimensional vector)?
- If conj() returns
(w, -x, -y, -z)
which are the values of the respective elements of the scalar, what do thex
,y
, andz
actually represent? Imaginary numbers?