|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Derived Classes:
Typedefs:
- typedef LongIntT AreaT;
-
Area of a 2D object.
Variables:
- RealT m00;
-
- RealT m10;
-
- RealT m01;
-
- RealT m20;
-
- RealT m11;
-
- RealT m02;
-
Methods:
- Moments012d2C()
-
Default constructor
Creates the moment object with all moments set to be zero.
- Moments012d2C(const BoundaryC & boundary)
-
Constructor from boundary description
Gets moments 00, 10, 01, 20, 11, 22 of the region
which is determined by the 'boundary'. The moments
are computed according to the origin of the coordinate
system of boundary vertexes
- void AddPixel(const PixelC & pxl)
-
Adds a pixel to the object and updates sums.
- Moments012d2C & Centerlize()
-
Recomputes the moments according to the centroid.
- Moments012d2C & ToPrincipalAxis()
-
Recomputes the moments according to the principal axis.
It is supposed that input moments are centerlized
- const Moments012d2C & Moments012d2() const
-
- Moments012d2C & Moments012d2()
-
- RealT M00() const
-
- RealT M10() const
-
- RealT M01() const
-
- RealT M20() const
-
- RealT M11() const
-
- RealT M02() const
-
- RealT & M00()
-
- RealT & M10()
-
- RealT & M01()
-
- RealT & M20()
-
- RealT & M11()
-
- RealT & M02()
-
- AreaT Area() const
-
Returns the moment m00, ie the area of the 2 dimensional object.
- RealT CentroidX() const
-
Returns the x co-ordinate of the centroid.
The M00 moment must be different 0.
- RealT CentroidY() const
-
Returns the y co-ordinate of the centroid.
The M00 moment must be different 0.
- RealT Elongatedness() const
-
Returns the ratio of the difference and the sum of moments m02 and m20.
The value 0 means that objects is a symmetrical object,
the value 1 corresponds to a one-dimensional object. Is is assumed
that input moments are centeralized and rotated to the principal
axes.
- istream & operator>>(istream & is,Moments012d2C & mom)
-
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|