applied comments after review
This commit is contained in:
parent
f013baf739
commit
ab8c0fde52
@ -514,6 +514,8 @@ Scalar\_
|
|||||||
--------
|
--------
|
||||||
.. ocv:class:: Scalar_
|
.. ocv:class:: Scalar_
|
||||||
|
|
||||||
|
Template class for a 4-element vector derived from Vec.
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
template<typename _Tp> class CV_EXPORTS Scalar_ : public Vec<_Tp, 4>
|
template<typename _Tp> class CV_EXPORTS Scalar_ : public Vec<_Tp, 4>
|
||||||
@ -543,10 +545,6 @@ Scalar\_
|
|||||||
bool isReal() const;
|
bool isReal() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
Template class for a 4-element vector derived from Vec. ::
|
|
||||||
|
|
||||||
template<typename _Tp> class Scalar_ : public Vec<_Tp, 4> { ... };
|
|
||||||
|
|
||||||
typedef Scalar_<double> Scalar;
|
typedef Scalar_<double> Scalar;
|
||||||
|
|
||||||
Being derived from ``Vec<_Tp, 4>`` , ``Scalar_`` and ``Scalar`` can be used just as typical 4-element vectors. In addition, they can be converted to/from ``CvScalar`` . The type ``Scalar`` is widely used in OpenCV to pass pixel values.
|
Being derived from ``Vec<_Tp, 4>`` , ``Scalar_`` and ``Scalar`` can be used just as typical 4-element vectors. In addition, they can be converted to/from ``CvScalar`` . The type ``Scalar`` is widely used in OpenCV to pass pixel values.
|
||||||
|
Loading…
Reference in New Issue
Block a user