OpenCV for Unity 2.6.4
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.ImgprocModule.Moments Class Reference

Template class for moments. More...

Public Member Functions

 Moments ()
 
 Moments (double m00, double m10, double m01, double m20, double m11, double m02, double m30, double m21, double m12, double m03)
 
 Moments (double[] vals)
 
 Moments (in Vec10d vals)
 
 Moments (in(double m00, double m10, double m01, double m20, double m11, double m02, double m30, double m21, double m12, double m03) vals)
 
bool Equals (Moments a)
 
override bool Equals (Object obj)
 
double get_m00 ()
 
double get_m01 ()
 
double get_m02 ()
 
double get_m03 ()
 
double get_m10 ()
 
double get_m11 ()
 
double get_m12 ()
 
double get_m20 ()
 
double get_m21 ()
 
double get_m30 ()
 
double get_mu02 ()
 
double get_mu03 ()
 
double get_mu11 ()
 
double get_mu12 ()
 
double get_mu20 ()
 
double get_mu21 ()
 
double get_mu30 ()
 
double get_nu02 ()
 
double get_nu03 ()
 
double get_nu11 ()
 
double get_nu12 ()
 
double get_nu20 ()
 
double get_nu21 ()
 
double get_nu30 ()
 
override int GetHashCode ()
 
void set (double[] vals)
 
void set (in Vec10d vals)
 
void set (in(double m00, double m10, double m01, double m20, double m11, double m02, double m30, double m21, double m12, double m03) vals)
 
void set_m00 (double m00)
 
void set_m01 (double m01)
 
void set_m02 (double m02)
 
void set_m03 (double m03)
 
void set_m10 (double m10)
 
void set_m11 (double m11)
 
void set_m12 (double m12)
 
void set_m20 (double m20)
 
void set_m21 (double m21)
 
void set_m30 (double m30)
 
void set_mu02 (double mu02)
 
void set_mu03 (double mu03)
 
void set_mu11 (double mu11)
 
void set_mu12 (double mu12)
 
void set_mu20 (double mu20)
 
void set_mu21 (double mu21)
 
void set_mu30 (double mu30)
 
void set_nu02 (double nu02)
 
void set_nu03 (double nu03)
 
void set_nu11 (double nu11)
 
void set_nu12 (double nu12)
 
void set_nu20 (double nu20)
 
void set_nu21 (double nu21)
 
void set_nu30 (double nu30)
 
override string ToString ()
 
double double double double double double double double double double m03 ToValueTuple ()
 
Vec10d ToVec10d ()
 

Static Public Member Functions

static operator (double m00, double m10, double m01, double m20, double m11, double m02, double m30, double m21, double m12, double m03)(Moments moments)
 
static operator Moments (in(double m00, double m10, double m01, double m20, double m11, double m02, double m30, double m21, double m12, double m03) valueTuple)
 
static operator Vec10d (Moments moments)
 
static bool operator!= (Moments a, Moments b)
 
static bool operator== (Moments a, Moments b)
 

Public Attributes

double m00
 
double m01
 
double double double m01
 
double m02
 
double double double double double double m02
 
double m03
 
double m10
 
double double m10
 
double m11
 
double double double double double m11
 
double m12
 
double double double double double double double double double m12
 
double m20
 
double double double double m20
 
double m21
 
double double double double double double double double m21
 
double m30
 
double double double double double double double m30
 
double mu02
 
double mu03
 
double mu11
 
double mu12
 
double mu20
 
double mu21
 
double mu30
 
double nu02
 
double nu03
 
double nu11
 
double nu12
 
double nu20
 
double nu21
 
double nu30
 

Protected Member Functions

void completeState ()
 

Detailed Description

Template class for moments.

The moments of a contour are defined in the same way but computed using the Green's formula (see http://en.wikipedia.org/wiki/Green_theorem

). So, due to a limited raster resolution, the moments computed for a contour are slightly different from the moments computed for the same rasterized contour.

Note
Since the contour moments are computed using Green formula, you may get seemingly odd results for contours with self-intersections, e.g.a zero area(m00) for butterfly-shaped contours.

C++: cv::Moments Class Reference

See also
https://docs.opencv.org/4.10.0/d8/d23/classcv_1_1Moments.html

Constructor & Destructor Documentation

◆ Moments() [1/5]

OpenCVForUnity.ImgprocModule.Moments.Moments ( double m00,
double m10,
double m01,
double m20,
double m11,
double m02,
double m30,
double m21,
double m12,
double m03 )

the full constructor

◆ Moments() [2/5]

OpenCVForUnity.ImgprocModule.Moments.Moments ( )

the default constructor

◆ Moments() [3/5]

OpenCVForUnity.ImgprocModule.Moments.Moments ( double[] vals)

◆ Moments() [4/5]

OpenCVForUnity.ImgprocModule.Moments.Moments ( in Vec10d vals)

◆ Moments() [5/5]

OpenCVForUnity.ImgprocModule.Moments.Moments ( in(double m00, double m10, double m01, double m20, double m11, double m02, double m30, double m21, double m12, double m03) vals)

Member Function Documentation

◆ completeState()

void OpenCVForUnity.ImgprocModule.Moments.completeState ( )
protected

◆ Equals() [1/2]

bool OpenCVForUnity.ImgprocModule.Moments.Equals ( Moments a)

◆ Equals() [2/2]

override bool OpenCVForUnity.ImgprocModule.Moments.Equals ( Object obj)

◆ get_m00()

double OpenCVForUnity.ImgprocModule.Moments.get_m00 ( )

◆ get_m01()

double OpenCVForUnity.ImgprocModule.Moments.get_m01 ( )

◆ get_m02()

double OpenCVForUnity.ImgprocModule.Moments.get_m02 ( )

◆ get_m03()

double OpenCVForUnity.ImgprocModule.Moments.get_m03 ( )

◆ get_m10()

double OpenCVForUnity.ImgprocModule.Moments.get_m10 ( )

◆ get_m11()

double OpenCVForUnity.ImgprocModule.Moments.get_m11 ( )

◆ get_m12()

double OpenCVForUnity.ImgprocModule.Moments.get_m12 ( )

◆ get_m20()

double OpenCVForUnity.ImgprocModule.Moments.get_m20 ( )

◆ get_m21()

double OpenCVForUnity.ImgprocModule.Moments.get_m21 ( )

◆ get_m30()

double OpenCVForUnity.ImgprocModule.Moments.get_m30 ( )

◆ get_mu02()

double OpenCVForUnity.ImgprocModule.Moments.get_mu02 ( )

◆ get_mu03()

double OpenCVForUnity.ImgprocModule.Moments.get_mu03 ( )

◆ get_mu11()

double OpenCVForUnity.ImgprocModule.Moments.get_mu11 ( )

◆ get_mu12()

double OpenCVForUnity.ImgprocModule.Moments.get_mu12 ( )

◆ get_mu20()

double OpenCVForUnity.ImgprocModule.Moments.get_mu20 ( )

◆ get_mu21()

double OpenCVForUnity.ImgprocModule.Moments.get_mu21 ( )

◆ get_mu30()

double OpenCVForUnity.ImgprocModule.Moments.get_mu30 ( )

◆ get_nu02()

double OpenCVForUnity.ImgprocModule.Moments.get_nu02 ( )

◆ get_nu03()

double OpenCVForUnity.ImgprocModule.Moments.get_nu03 ( )

◆ get_nu11()

double OpenCVForUnity.ImgprocModule.Moments.get_nu11 ( )

◆ get_nu12()

double OpenCVForUnity.ImgprocModule.Moments.get_nu12 ( )

◆ get_nu20()

double OpenCVForUnity.ImgprocModule.Moments.get_nu20 ( )

◆ get_nu21()

double OpenCVForUnity.ImgprocModule.Moments.get_nu21 ( )

◆ get_nu30()

double OpenCVForUnity.ImgprocModule.Moments.get_nu30 ( )

◆ GetHashCode()

override int OpenCVForUnity.ImgprocModule.Moments.GetHashCode ( )

◆ operator()

static OpenCVForUnity.ImgprocModule.Moments.operator ( double m00,
double m10,
double m01,
double m20,
double m11,
double m02,
double m30,
double m21,
double m12,
double m03 )
explicitstatic

◆ operator Moments()

static OpenCVForUnity.ImgprocModule.Moments.operator Moments ( in(double m00, double m10, double m01, double m20, double m11, double m02, double m30, double m21, double m12, double m03) valueTuple)
explicitstatic

◆ operator Vec10d()

◆ operator!=()

static bool OpenCVForUnity.ImgprocModule.Moments.operator!= ( Moments a,
Moments b )
static

◆ operator==()

◆ set() [1/3]

void OpenCVForUnity.ImgprocModule.Moments.set ( double[] vals)

◆ set() [2/3]

void OpenCVForUnity.ImgprocModule.Moments.set ( in Vec10d vals)

◆ set() [3/3]

void OpenCVForUnity.ImgprocModule.Moments.set ( in(double m00, double m10, double m01, double m20, double m11, double m02, double m30, double m21, double m12, double m03) vals)

◆ set_m00()

void OpenCVForUnity.ImgprocModule.Moments.set_m00 ( double m00)

◆ set_m01()

void OpenCVForUnity.ImgprocModule.Moments.set_m01 ( double m01)

◆ set_m02()

void OpenCVForUnity.ImgprocModule.Moments.set_m02 ( double m02)

◆ set_m03()

void OpenCVForUnity.ImgprocModule.Moments.set_m03 ( double m03)

◆ set_m10()

void OpenCVForUnity.ImgprocModule.Moments.set_m10 ( double m10)

◆ set_m11()

void OpenCVForUnity.ImgprocModule.Moments.set_m11 ( double m11)

◆ set_m12()

void OpenCVForUnity.ImgprocModule.Moments.set_m12 ( double m12)

◆ set_m20()

void OpenCVForUnity.ImgprocModule.Moments.set_m20 ( double m20)

◆ set_m21()

void OpenCVForUnity.ImgprocModule.Moments.set_m21 ( double m21)

◆ set_m30()

void OpenCVForUnity.ImgprocModule.Moments.set_m30 ( double m30)

◆ set_mu02()

void OpenCVForUnity.ImgprocModule.Moments.set_mu02 ( double mu02)

◆ set_mu03()

void OpenCVForUnity.ImgprocModule.Moments.set_mu03 ( double mu03)

◆ set_mu11()

void OpenCVForUnity.ImgprocModule.Moments.set_mu11 ( double mu11)

◆ set_mu12()

void OpenCVForUnity.ImgprocModule.Moments.set_mu12 ( double mu12)

◆ set_mu20()

void OpenCVForUnity.ImgprocModule.Moments.set_mu20 ( double mu20)

◆ set_mu21()

void OpenCVForUnity.ImgprocModule.Moments.set_mu21 ( double mu21)

◆ set_mu30()

void OpenCVForUnity.ImgprocModule.Moments.set_mu30 ( double mu30)

◆ set_nu02()

void OpenCVForUnity.ImgprocModule.Moments.set_nu02 ( double nu02)

◆ set_nu03()

void OpenCVForUnity.ImgprocModule.Moments.set_nu03 ( double nu03)

◆ set_nu11()

void OpenCVForUnity.ImgprocModule.Moments.set_nu11 ( double nu11)

◆ set_nu12()

void OpenCVForUnity.ImgprocModule.Moments.set_nu12 ( double nu12)

◆ set_nu20()

void OpenCVForUnity.ImgprocModule.Moments.set_nu20 ( double nu20)

◆ set_nu21()

void OpenCVForUnity.ImgprocModule.Moments.set_nu21 ( double nu21)

◆ set_nu30()

void OpenCVForUnity.ImgprocModule.Moments.set_nu30 ( double nu30)

◆ ToString()

override string OpenCVForUnity.ImgprocModule.Moments.ToString ( )

◆ ToValueTuple()

double double double double double double double double double double m03 OpenCVForUnity.ImgprocModule.Moments.ToValueTuple ( )

◆ ToVec10d()

Vec10d OpenCVForUnity.ImgprocModule.Moments.ToVec10d ( )

Member Data Documentation

◆ m00

double OpenCVForUnity.ImgprocModule.Moments.m00

◆ m01 [1/2]

double OpenCVForUnity.ImgprocModule.Moments.m01

◆ m01 [2/2]

double double double OpenCVForUnity.ImgprocModule.Moments.m01

◆ m02 [1/2]

double OpenCVForUnity.ImgprocModule.Moments.m02

◆ m02 [2/2]

double double double double double double OpenCVForUnity.ImgprocModule.Moments.m02

◆ m03

double OpenCVForUnity.ImgprocModule.Moments.m03

◆ m10 [1/2]

double OpenCVForUnity.ImgprocModule.Moments.m10

◆ m10 [2/2]

double double OpenCVForUnity.ImgprocModule.Moments.m10

◆ m11 [1/2]

double OpenCVForUnity.ImgprocModule.Moments.m11

◆ m11 [2/2]

double double double double double OpenCVForUnity.ImgprocModule.Moments.m11

◆ m12 [1/2]

double OpenCVForUnity.ImgprocModule.Moments.m12

◆ m12 [2/2]

double double double double double double double double double OpenCVForUnity.ImgprocModule.Moments.m12

◆ m20 [1/2]

double OpenCVForUnity.ImgprocModule.Moments.m20

◆ m20 [2/2]

double double double double OpenCVForUnity.ImgprocModule.Moments.m20

◆ m21 [1/2]

double OpenCVForUnity.ImgprocModule.Moments.m21

◆ m21 [2/2]

double double double double double double double double OpenCVForUnity.ImgprocModule.Moments.m21

◆ m30 [1/2]

double OpenCVForUnity.ImgprocModule.Moments.m30

◆ m30 [2/2]

double double double double double double double OpenCVForUnity.ImgprocModule.Moments.m30

◆ mu02

double OpenCVForUnity.ImgprocModule.Moments.mu02

◆ mu03

double OpenCVForUnity.ImgprocModule.Moments.mu03

◆ mu11

double OpenCVForUnity.ImgprocModule.Moments.mu11

◆ mu12

double OpenCVForUnity.ImgprocModule.Moments.mu12

◆ mu20

double OpenCVForUnity.ImgprocModule.Moments.mu20

◆ mu21

double OpenCVForUnity.ImgprocModule.Moments.mu21

◆ mu30

double OpenCVForUnity.ImgprocModule.Moments.mu30

◆ nu02

double OpenCVForUnity.ImgprocModule.Moments.nu02

◆ nu03

double OpenCVForUnity.ImgprocModule.Moments.nu03

◆ nu11

double OpenCVForUnity.ImgprocModule.Moments.nu11

◆ nu12

double OpenCVForUnity.ImgprocModule.Moments.nu12

◆ nu20

double OpenCVForUnity.ImgprocModule.Moments.nu20

◆ nu21

double OpenCVForUnity.ImgprocModule.Moments.nu21

◆ nu30

double OpenCVForUnity.ImgprocModule.Moments.nu30

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