mimas::moments_tool Class Reference

Computation of image moments and Hu invariant moments. More...

#include <moments_tool.h>

Inheritance diagram for mimas::moments_tool:

Inheritance graph
[legend]
Collaboration diagram for mimas::moments_tool:

Collaboration graph
[legend]
List of all members.

Public Types

typedef boost::numeric::ublas::matrix<
double
Matrix
typedef boost::numeric::ublas::vector<
double
Vector

Public Member Functions

 moments_tool (void)
 constructor
boost::numeric::ublas::matrix<
double
findMoments (const image< unsigned char > imagein, const unsigned char bglevel=0, bool binaryImage=false)
 find image moments and return a 5x5 matrix containing the moments. The bglevel parameter is the background grey level that is ignored when find the moment
boost::numeric::ublas::vector<
double
findHuInvariantMoments (const image< unsigned char > imagein, const unsigned char bglevel=0, bool binaryImage=false)
 find the 7 Hu invariant moments and return it as a vector. Note that the vector indices from 0..6, so Hu moment 1 is 0, Hu moment 2 is 1, etc. The bglevel parameter sets the background grey level so that these pixels are ignored in the image.

Detailed Description

Computation of image moments and Hu invariant moments.

Author:
Bala Amavasai (bala@amavasai.org)
Date:
Tue Apr 12 16:00:05 BST 2005
Header
/cvs/mimas2/include/moments_tool.h,v 1.1.1.1 2005/08/09 15:37:45 engmb Exp

Definition at line 18 of file moments_tool.h.


Member Typedef Documentation

typedef boost::numeric::ublas::matrix< double > mimas::moments_tool::Matrix

Definition at line 21 of file moments_tool.h.

typedef boost::numeric::ublas::vector< double > mimas::moments_tool::Vector

Definition at line 22 of file moments_tool.h.


Constructor & Destructor Documentation

mimas::moments_tool::moments_tool ( void   ) 

constructor


Member Function Documentation

boost::numeric::ublas::matrix< double > mimas::moments_tool::findMoments ( const image< unsigned char >  imagein,
const unsigned char  bglevel = 0,
bool  binaryImage = false 
)

find image moments and return a 5x5 matrix containing the moments. The bglevel parameter is the background grey level that is ignored when find the moment

boost::numeric::ublas::vector< double > mimas::moments_tool::findHuInvariantMoments ( const image< unsigned char >  imagein,
const unsigned char  bglevel = 0,
bool  binaryImage = false 
)

find the 7 Hu invariant moments and return it as a vector. Note that the vector indices from 0..6, so Hu moment 1 is 0, Hu moment 2 is 1, etc. The bglevel parameter sets the background grey level so that these pixels are ignored in the image.


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:35 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...