Table of Contents

Class Moments

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Raster image moments

public class Moments
Inheritance
Moments
Inherited Members

Constructors

Moments()

Default constructor. All moment values are set to 0.

Moments(InputArray, bool)

Calculates all of the moments up to the third order of a polygon or rasterized shape.

Moments(byte[,], bool)

Calculates all of the moments up to the third order of a polygon or rasterized shape.

Moments(IEnumerable<Point2f>, bool)

Calculates all of the moments up to the third order of a polygon or rasterized shape.

Moments(IEnumerable<Point>, bool)

Calculates all of the moments up to the third order of a polygon or rasterized shape.

Moments(double, double, double, double, double, double, double, double, double, double)
Moments(float[,], bool)

Calculates all of the moments up to the third order of a polygon or rasterized shape.

Fields

M00

spatial moments

M01

spatial moments

M02

spatial moments

M03

spatial moments

M10

spatial moments

M11

spatial moments

M12

spatial moments

M20

spatial moments

M21

spatial moments

M30

spatial moments

Mu02

central moments

Mu03

central moments

Mu11

central moments

Mu12

central moments

Mu20

central moments

Mu21

central moments

Mu30

central moments

Nu02

central normalized moments

Nu03

central normalized moments

Nu11

central normalized moments

Nu12

central normalized moments

Nu20

central normalized moments

Nu21

central normalized moments

Nu30

central normalized moments

Methods

HuMoments()

computes 7 Hu invariants from the moments