Class cv::Scalar_#
Template class for a 4-element vector derived from Vec. View details
#include <opencv2/core/types.hpp>Collaboration diagram for cv::Scalar_:
Public Types#
Public Types inherited from cv::Vec
Return |
Name |
Description |
|---|---|---|
|
Public Member Functions#
Public Member Functions inherited from cv::Vec
Return |
Name |
Description |
|---|---|---|
default constructor |
||
1-element vector constructor |
||
2-element vector constructor |
||
3-element vector constructor |
||
4-element vector constructor |
||
5-element vector constructor |
||
6-element vector constructor |
||
|
7-element vector constructor |
|
|
8-element vector constructor |
|
|
9-element vector constructor |
|
|
10-element vector constructor |
|
14-element vector constructor |
||
|
||
|
||
|
||
conjugation (makes sense for complex numbers and quaternions) |
||
per-element multiplication |
||
conversion to another data type |
||
|
||
|
||
|
||
|
Public Member Functions inherited from cv::Matx
Return |
Name |
Description |
|---|---|---|
default constructor |
||
1x1 matrix |
||
1x2 or 2x1 matrix |
||
1x3 or 3x1 matrix |
||
1x4, 2x2 or 4x1 matrix |
||
1x5 or 5x1 matrix |
||
1x6, 2x3, 3x2 or 6x1 matrix |
||
|
1x7 or 7x1 matrix |
|
|
1x8, 2x4, 4x2 or 8x1 matrix |
|
|
1x9, 3x3 or 9x1 matrix |
|
|
1x10, 2x5 or 5x2 or 10x1 matrix |
|
1x12, 2x6, 3x4, 4x3, 6x2 or 12x1 matrix |
||
1x14, 2x7, 7x2 or 14x1 matrix |
||
1x16, 4x4 or 16x1 matrix |
||
initialize from a plain array |
||
|
||
|
||
|
||
|
||
|
||
|
||
initialize from an initializer list |
||
|
extract the matrix column |
|
|
|
|
|
copy & convert |
|
|
dot product computed in double-precision arithmetics |
|
extract the matrix diagonal |
||
|
divide two matrices element-wise |
|
|
dot product computed with the default precision |
|
|
extract part of the matrix |
|
|
invert the matrix |
|
|
multiply two matrices element-wise |
|
conversion to another data type |
||
|
||
|
1D element access |
|
|
||
|
element access |
|
|
change the matrix shape |
|
|
extract the matrix row |
|
|
|
solve linear system |
|
||
|
transpose the matrix |
Static Public Member Functions#
Static Public Member Functions inherited from cv::Vec
Static Public Member Functions inherited from cv::Matx
Return |
Name |
Description |
|---|---|---|
|
||
|
||
|
||
|
||
|
Generates normally distributed random numbers. |
|
|
Generates uniformly distributed random numbers. |
|
|
Public Attributes#
Detailed Description#
Template class for a 4-element vector derived from Vec.
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.
Constructor & Destructor Documentation#
Scalar_()#
default constructor
Scalar_()#
cv::Scalar_::Scalar_(_Tp v0)
Scalar_()#
cv::Scalar_::Scalar_(
_Tp v0,
_Tp v1,
_Tp v2 = 0,
_Tp v3 = 0 )
Scalar_()#
cv::Scalar_::Scalar_(const Scalar_ & s)
Scalar_()#
template<typename _Tp2, int cn>
cv::Scalar_::Scalar_(const Vec< _Tp2, cn > & v)
Scalar_()#
cv::Scalar_::Scalar_(Scalar_ && s)
Member Function Documentation#
conj()#
Scalar_< Tp > cv::Scalar::conj()
returns (v0, -v1, -v2, -v3)
isReal()#
bool cv::Scalar_::isReal()
returns true iff v1 == v2 == v3 == 0
mul()#
Scalar_< Tp > cv::Scalar::mul(
const Scalar_< _Tp > & a,
double scale = 1 )
per-element product
operator Scalar_< T2 >()#
template<typename T2>
cv::Scalar_::operator Scalar_< T2 >()
conversion to another data type
operator=()#
Scalar_ & cv::Scalar_::operator=(const Scalar_ & s)
operator=()#
Scalar_ & cv::Scalar_::operator=(Scalar_ && s)
all()#
static Scalar_< Tp > cv::Scalar::all(_Tp v0)
returns a scalar with all elements set to v0
Source file#
The documentation for this class was generated from the following file:
opencv2/core/types.hpp