#include <core.hpp>
Public Member Functions | |
Scalar_< _Tp > | conj () const |
bool | isReal () const |
Scalar_< _Tp > | mul (const Scalar_< _Tp > &t, double scale=1) const |
per-element product | |
operator CvScalar () const | |
conversion to the old-style CvScalar | |
template<typename T2 > | |
operator Scalar_< T2 > () const | |
conversion to another data type | |
Scalar_ (_Tp v0) | |
Scalar_ (const CvScalar &s) | |
Scalar_ (_Tp v0, _Tp v1, _Tp v2=0, _Tp v3=0) | |
Scalar_ () | |
various constructors | |
Static Public Member Functions | |
static Scalar_< _Tp > | all (_Tp v0) |
returns a scalar with all elements set to v0 |
The template scalar class.
This is partially specialized cv::Vec class with the number of elements = 4, i.e. a short vector of four elements. Normally, cv::Scalar ~ cv::Scalar_<double> is used.
cv::Scalar_< _Tp >::Scalar_ | ( | ) | [inline] |
various constructors
cv::Scalar_< _Tp >::Scalar_ | ( | _Tp | v0, | |
_Tp | v1, | |||
_Tp | v2 = 0 , |
|||
_Tp | v3 = 0 | |||
) | [inline] |
cv::Scalar_< _Tp >::Scalar_ | ( | const CvScalar & | s | ) | [inline] |
cv::Scalar_< _Tp >::Scalar_ | ( | _Tp | v0 | ) | [inline] |
Scalar_< _Tp > cv::Scalar_< _Tp >::all | ( | _Tp | v0 | ) | [inline, static] |
returns a scalar with all elements set to v0
Reimplemented from cv::Vec< _Tp, 4 >.
Scalar_< _Tp > cv::Scalar_< _Tp >::conj | ( | ) | const [inline] |
bool cv::Scalar_< _Tp >::isReal | ( | ) | const [inline] |
Scalar_< _Tp > cv::Scalar_< _Tp >::mul | ( | const Scalar_< _Tp > & | t, | |
double | scale = 1 | |||
) | const [inline] |
per-element product
cv::Scalar_< _Tp >::operator CvScalar | ( | ) | const [inline] |
conversion to the old-style CvScalar
Reimplemented from cv::Vec< _Tp, 4 >.
cv::Scalar_< _Tp >::operator Scalar_< T2 > | ( | ) | const [inline] |
conversion to another data type