OpenCV for Unity 2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.CoreModule.Scalar Class Reference

Template class for a 4-element vector derived from Vec. More...

Inheritance diagram for OpenCVForUnity.CoreModule.Scalar:

Public Member Functions

 Scalar (double v0, double v1, double v2, double v3)
 
 Scalar (double v0, double v1, double v2)
 
 Scalar (double v0, double v1)
 
 Scalar (double v0)
 
 Scalar (double[] vals)
 
void set (double[] vals)
 
Scalar clone ()
 
Scalar mul (Scalar it, double scale)
 
Scalar mul (Scalar it)
 
Scalar conj ()
 
bool isReal ()
 
override int GetHashCode ()
 
override bool Equals (Object obj)
 
override string ToString ()
 
 Scalar (in Vec4d vals)
 
 Scalar (in(double v0, double v1, double v2, double v3) vals)
 
void set (in Vec4d vals)
 
void set (in(double v0, double v1, double v2, double v3) vals)
 
Vec4d cloneAsVec4d ()
 
double double double double v3 cloneAsValueTuple ()
 
Vec4d mulAsVec4d (in Vec4d it, double scale)
 
double double double double v3 mulAsValueTuple (in(double v0, double v1, double v2, double v3) it, double scale)
 
Vec4d mulAsVec4d (Vec4d it)
 
double double double double v3 mulAsValueTuple (in(double v0, double v1, double v2, double v3) it)
 
Vec4d conjAsVec4d ()
 
double double double double v3 conjAsValueTuple ()
 
double double double double v3 ToValueTuple ()
 
Vec4d ToVec4d ()
 
bool Equals (Scalar a)
 

Static Public Member Functions

static Scalar all (double v)
 
static Vec4d allAsVec4d (double v)
 
static double double double double v3 allAsValueTuple (double v)
 
static operator Vec4d (Scalar scalar)
 
static operator (double v0, double v1, double v2, double v3)(Scalar scalar)
 
static operator Scalar (in(double v0, double v1, double v2, double v3) valueTuple)
 
static Scalar operator- (Scalar a)
 
static Scalar operator+ (Scalar a, Scalar b)
 
static Scalar operator- (Scalar a, Scalar b)
 
static Scalar operator* (Scalar a, Scalar b)
 
static Scalar operator* (Scalar a, double alpha)
 
static Scalar operator* (double alpha, Scalar a)
 
static Scalar operator/ (Scalar a, Scalar b)
 
static Scalar operator/ (Scalar a, double alpha)
 
static Scalar operator/ (double a, Scalar b)
 
static bool operator== (Scalar a, Scalar b)
 
static bool operator!= (Scalar a, Scalar b)
 

Public Attributes

double[] val
 
double v0
 
double double v1
 
double double double v2
 

Static Public Attributes

static double v0
 
static double double v1
 
static double double double v2
 

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.

C++: cv::Scalar_<_Tp> Class Template Reference

See also
https://docs.opencv.org/4.10.0/d1/da0/classcv_1_1Scalar__.html

Constructor & Destructor Documentation

◆ Scalar() [1/7]

OpenCVForUnity.CoreModule.Scalar.Scalar ( double v0,
double v1,
double v2,
double v3 )

◆ Scalar() [2/7]

OpenCVForUnity.CoreModule.Scalar.Scalar ( double v0,
double v1,
double v2 )

◆ Scalar() [3/7]

OpenCVForUnity.CoreModule.Scalar.Scalar ( double v0,
double v1 )

◆ Scalar() [4/7]

OpenCVForUnity.CoreModule.Scalar.Scalar ( double v0)

◆ Scalar() [5/7]

OpenCVForUnity.CoreModule.Scalar.Scalar ( double[] vals)

◆ Scalar() [6/7]

OpenCVForUnity.CoreModule.Scalar.Scalar ( in Vec4d vals)

◆ Scalar() [7/7]

OpenCVForUnity.CoreModule.Scalar.Scalar ( in(double v0, double v1, double v2, double v3) vals)

Member Function Documentation

◆ all()

static Scalar OpenCVForUnity.CoreModule.Scalar.all ( double v)
static

returns a scalar with all elements set to v0

◆ allAsValueTuple()

static double double double double v3 OpenCVForUnity.CoreModule.Scalar.allAsValueTuple ( double v)
static

◆ allAsVec4d()

static Vec4d OpenCVForUnity.CoreModule.Scalar.allAsVec4d ( double v)
static

returns a scalar with all elements set to v0

◆ clone()

Scalar OpenCVForUnity.CoreModule.Scalar.clone ( )

◆ cloneAsValueTuple()

double double double double v3 OpenCVForUnity.CoreModule.Scalar.cloneAsValueTuple ( )

◆ cloneAsVec4d()

Vec4d OpenCVForUnity.CoreModule.Scalar.cloneAsVec4d ( )

◆ conj()

Scalar OpenCVForUnity.CoreModule.Scalar.conj ( )

returns (v0, -v1, -v2, -v3)

◆ conjAsValueTuple()

double double double double v3 OpenCVForUnity.CoreModule.Scalar.conjAsValueTuple ( )

◆ conjAsVec4d()

Vec4d OpenCVForUnity.CoreModule.Scalar.conjAsVec4d ( )

returns (v0, -v1, -v2, -v3)

◆ Equals() [1/2]

override bool OpenCVForUnity.CoreModule.Scalar.Equals ( Object obj)

◆ Equals() [2/2]

bool OpenCVForUnity.CoreModule.Scalar.Equals ( Scalar a)

◆ GetHashCode()

override int OpenCVForUnity.CoreModule.Scalar.GetHashCode ( )

◆ isReal()

bool OpenCVForUnity.CoreModule.Scalar.isReal ( )

returns true iff v1 == v2 == v3 == 0

◆ mul() [1/2]

Scalar OpenCVForUnity.CoreModule.Scalar.mul ( Scalar it)

per-element product

◆ mul() [2/2]

Scalar OpenCVForUnity.CoreModule.Scalar.mul ( Scalar it,
double scale )

per-element product

◆ mulAsValueTuple() [1/2]

double double double double v3 OpenCVForUnity.CoreModule.Scalar.mulAsValueTuple ( in(double v0, double v1, double v2, double v3) it)

◆ mulAsValueTuple() [2/2]

double double double double v3 OpenCVForUnity.CoreModule.Scalar.mulAsValueTuple ( in(double v0, double v1, double v2, double v3) it,
double scale )

◆ mulAsVec4d() [1/2]

Vec4d OpenCVForUnity.CoreModule.Scalar.mulAsVec4d ( in Vec4d it,
double scale )

per-element product

◆ mulAsVec4d() [2/2]

Vec4d OpenCVForUnity.CoreModule.Scalar.mulAsVec4d ( Vec4d it)

per-element product

◆ operator()

static OpenCVForUnity.CoreModule.Scalar.operator ( double v0,
double v1,
double v2,
double v3 )
explicitstatic

◆ operator Scalar()

static OpenCVForUnity.CoreModule.Scalar.operator Scalar ( in(double v0, double v1, double v2, double v3) valueTuple)
explicitstatic

◆ operator Vec4d()

static OpenCVForUnity.CoreModule.Scalar.operator Vec4d ( Scalar scalar)
explicitstatic

◆ operator!=()

static bool OpenCVForUnity.CoreModule.Scalar.operator!= ( Scalar a,
Scalar b )
static

◆ operator*() [1/3]

static Scalar OpenCVForUnity.CoreModule.Scalar.operator* ( double alpha,
Scalar a )
static

◆ operator*() [2/3]

static Scalar OpenCVForUnity.CoreModule.Scalar.operator* ( Scalar a,
double alpha )
static

◆ operator*() [3/3]

◆ operator+()

◆ operator-() [1/2]

◆ operator-() [2/2]

◆ operator/() [1/3]

static Scalar OpenCVForUnity.CoreModule.Scalar.operator/ ( double a,
Scalar b )
static

◆ operator/() [2/3]

static Scalar OpenCVForUnity.CoreModule.Scalar.operator/ ( Scalar a,
double alpha )
static

◆ operator/() [3/3]

◆ operator==()

◆ set() [1/3]

void OpenCVForUnity.CoreModule.Scalar.set ( double[] vals)

◆ set() [2/3]

void OpenCVForUnity.CoreModule.Scalar.set ( in Vec4d vals)

◆ set() [3/3]

void OpenCVForUnity.CoreModule.Scalar.set ( in(double v0, double v1, double v2, double v3) vals)

◆ ToString()

override string OpenCVForUnity.CoreModule.Scalar.ToString ( )

◆ ToValueTuple()

double double double double v3 OpenCVForUnity.CoreModule.Scalar.ToValueTuple ( )

◆ ToVec4d()

Vec4d OpenCVForUnity.CoreModule.Scalar.ToVec4d ( )

Member Data Documentation

◆ v0 [1/2]

double OpenCVForUnity.CoreModule.Scalar.v0
static

returns a scalar with all elements set to v0

per-element product

returns (v0, -v1, -v2, -v3)

◆ v0 [2/2]

double OpenCVForUnity.CoreModule.Scalar.v0

per-element product

returns (v0, -v1, -v2, -v3)

◆ v1 [1/2]

double double OpenCVForUnity.CoreModule.Scalar.v1
static

◆ v1 [2/2]

double double OpenCVForUnity.CoreModule.Scalar.v1

◆ v2 [1/2]

double double double OpenCVForUnity.CoreModule.Scalar.v2
static

◆ v2 [2/2]

double double double OpenCVForUnity.CoreModule.Scalar.v2

◆ val

double [] OpenCVForUnity.CoreModule.Scalar.val

The documentation for this class was generated from the following files: