|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Parent Classes:
Variables:
- IntT per;
-
Methods:
- Moments012Perd2C()
-
- Moments012Perd2C(const Moments012Perd2C & momP)
-
- Moments012Perd2C(const BoundaryC & boundary)
-
Gets moments 00, 10, 01, 20, 11, 22 and perimeter of the region
which is determined by the 'boundary'. The moments
are computed according to the origin of the coordinate
system of boundary vertexes
- IntT Perimeter() const
-
- IntT & Perimeter()
-
- RealT Compactness() const
-
Returns the number that express how the space of the 2d object
is close to a circle. The most compact region in a Euclidian
space is a circle. The returned value for a circle is 1.
If the object is not compact returned value are closer to 0.
- istream & operator>>(istream & is,Moments012Perd2C & mom)
-
- 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
|