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

  PUBLIC
Moments012Perd2C::Moments012Perd2C(void)
Moments012Perd2C::Moments012Perd2C(const Moments012Perd2C &)
Moments012Perd2C::Moments012Perd2C(const BoundaryC &)
Moments012Perd2C::Perimeter(void) const
Moments012Perd2C::Perimeter(void)
Moments012Perd2C::Compactness(void) const
Moments012Perd2C::operator>>(istream &,Moments012Perd2C &)
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::operator>>(istream &,Moments012d2C &)
Moments012Perd2C
 
Moments in 2D space, the first two ones and perimeter
 
include "amma/Mom012P2.hh"
User Level:Default
Library:iaps
Example:exImgSeq.cc
Section:Image.Image Processing.Region Model
In Scope:std

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)

#include "amma/Mom012d2.hh"
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