#include <moments_tool.h>
Inheritance diagram for mimas::moments_tool:
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. |
Definition at line 18 of file moments_tool.h.
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.
mimas::moments_tool::moments_tool | ( | void | ) |
constructor
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.