LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::huMoments Class Reference

Extracts the 7 moment invariants as described in "Visual Pattern Recognition by Moment Invariants" by Ming-Kuei Hu (IRE Transactions on Information Theory, 1962). More...

#include <ltiHuMoments.h>

Inheritance diagram for lti::huMoments:
Inheritance graph
[legend]
Collaboration diagram for lti::huMoments:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 the parameters for the class huMoments More...

Public Member Functions

 huMoments ()
 huMoments (const huMoments &other)
virtual ~huMoments ()
virtual const char * getTypeName () const
bool apply (const channel8 &src, dvector &dest, dvector &more) const
bool apply (const channel &src, dvector &dest, dvector &more) const
bool apply (const channel8 &src, dvector &dest) const
bool apply (const channel &src, dvector &dest) const
bool apply (const channel8 &src, const rectangle &rect, dvector &dest, dvector &more) const
bool apply (const channel &src, const rectangle &rect, dvector &dest, dvector &more) const
bool apply (const channel8 &src, const rectangle &rect, dvector &dest) const
bool apply (const channel &src, const rectangle &rect, dvector &dest) const
huMomentscopy (const huMoments &other)
huMomentsoperator= (const huMoments &other)
virtual functorclone () const
const parametersgetParameters () const

Detailed Description

Extracts the 7 moment invariants as described in "Visual Pattern Recognition by Moment Invariants" by Ming-Kuei Hu (IRE Transactions on Information Theory, 1962).


Constructor & Destructor Documentation

lti::huMoments::huMoments (  ) 

default constructor

lti::huMoments::huMoments ( const huMoments other  ) 

copy constructor

Parameters:
other the object to be copied
virtual lti::huMoments::~huMoments (  )  [virtual]

destructor


Member Function Documentation

bool lti::huMoments::apply ( const channel src,
const rectangle rect,
dvector dest 
) const

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
rect bounding rectangle of data to be regarded.
dest dvector containing the 7 hu moments.
Returns:
true if apply successful or false otherwise.
bool lti::huMoments::apply ( const channel8 src,
const rectangle rect,
dvector dest 
) const

operates on a copy of the given parameters.

Parameters:
src channel8 with the source data.
rect bounding rectangle of data to be regarded.
dest dvector containing the 7 hu moments.
Returns:
true if apply successful or false otherwise.
bool lti::huMoments::apply ( const channel src,
const rectangle rect,
dvector dest,
dvector more 
) const

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
rect bounding rectangle of data to be regarded.
dest dvector containing the 7 hu moments.
more additional feature vector with

  • xcog
  • ycog
  • eigen1
  • eigen2
  • orientation [-Pi/2,Pi/2]
  • m00
Returns:
true if apply successful or false otherwise.
bool lti::huMoments::apply ( const channel8 src,
const rectangle rect,
dvector dest,
dvector more 
) const

operates on a copy of the given parameters.

Parameters:
src channel8 with the source data.
rect bounding rectangle of data to be regarded.
dest dvector containing the 7 hu moments.
more additional feature vector with

  • xcog
  • ycog
  • eigen1
  • eigen2
  • orientation [-Pi/2,Pi/2]
  • m00
Returns:
true if apply successful or false otherwise.
bool lti::huMoments::apply ( const channel src,
dvector dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
dest dvector containing the 7 hu moments.
Returns:
true if apply successful or false otherwise.

Reimplemented from lti::globalFeatureExtractor.

bool lti::huMoments::apply ( const channel8 src,
dvector dest 
) const [virtual]

operates on a copy of the given parameters.

Parameters:
src channel8 with the source data.
dest dvector containing the 7 hu moments.
Returns:
true if apply successful or false otherwise.

Reimplemented from lti::globalFeatureExtractor.

bool lti::huMoments::apply ( const channel src,
dvector dest,
dvector more 
) const

operates on a copy of the given parameters.

Parameters:
src channel with the source data.
dest dvector containing the 7 hu moments.
more additional feature vector with

  • xcog
  • ycog
  • eigen1
  • eigen2
  • orientation [-Pi/2,Pi/2]
  • m00
Returns:
true if apply successful or false otherwise.
bool lti::huMoments::apply ( const channel8 src,
dvector dest,
dvector more 
) const

operates on a copy of the given parameters.

Parameters:
src channel8 with the source data.
dest dvector containing the 7 hu moments.
more additional feature vector with

  • xcog
  • ycog
  • eigen1
  • eigen2
  • orientation [-Pi/2,Pi/2]
  • m00
Returns:
true if apply successful or false otherwise.
virtual functor* lti::huMoments::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Reimplemented from lti::globalFeatureExtractor.

huMoments& lti::huMoments::copy ( const huMoments other  ) 

copy data of "other" functor.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::globalFeatureExtractor.

const parameters& lti::huMoments::getParameters (  )  const

returns used parameters

Reimplemented from lti::globalFeatureExtractor.

virtual const char* lti::huMoments::getTypeName (  )  const [virtual]

returns the name of this type ("huMoments")

Reimplemented from lti::globalFeatureExtractor.

huMoments& lti::huMoments::operator= ( const huMoments other  ) 

alias for copy member

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::functor.


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:27:26 2010 for LTI-Lib by Doxygen 1.6.1