User Documentation
Centre for Vision, Speech & Signal Processing
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
Moments012d2C::Moments012d2C(void)
Moments012d2C::Moments012d2C(const BoundaryC &)
Moments012d2C::AddPixel(const PixelC &)
Moments012d2C::Centerlize(void)
Moments012d2C::ToPrincipalAxis(void)
Moments012d2C::Moments012d2(void) const
Moments012d2C::Moments012d2(void)
Moments012d2C::M00(void) const
Moments012d2C::M10(void) const
Moments012d2C::M01(void) const
Moments012d2C::M20(void) const
Moments012d2C::M11(void) const
Moments012d2C::M02(void) const
Moments012d2C::M00(void)
Moments012d2C::M10(void)
Moments012d2C::M01(void)
Moments012d2C::M20(void)
Moments012d2C::M11(void)
Moments012d2C::M02(void)
Moments012d2C::Area(void) const
Moments012d2C::CentroidX(void) const
Moments012d2C::CentroidY(void) const
Moments012d2C::Elongatedness(void) const
Moments012d2C
 
The first two moments in 2D space
 
include "amma/Mom012d2.hh"
User Level:Default
Library:iaps
Example:exImgSeq.cc
Section:Image.Image Processing.Region Model
In Scope:std

Derived Classes:

Typedefs:
typedef LongIntT AreaT;
Area of a 2D object.

Variables:
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.


Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001