#include <CoOccurence.h>
Inheritance diagram for prapi::texture::CoOccurence:

Public Types | |
| enum | CoOccurenceAngle { DIR0, DIR45, DIR90, DIR135, ALL } |
| This enumeration specifies the angle of made cooccurence matrix The posibilities are: DIR0,DIR45,DIR90,DIR135 and ALL. | |
| enum | Feature { MOMENT, INVERSE_MOMENT, CONTRAST, HOMOGENITY, ENTROPY } |
| An enumeration for the features calculated from co-occurrence matrices. More... | |
Public Methods | |
| CoOccurence (CoOccurenceAngle angle, int radius) | |
| The constructor of CoOccurence matrix. | |
| void | setAngle (CoOccurenceAngle angle) |
| Set the angle. | |
| void | setRadius (int radius) |
| Set the radius. | |
| CoOccurenceAngle | getAngle () |
| Get the angle. | |
| int | getRadius () |
| Get the radius. | |
| util::Matrix< int > | getTransformedImage (const util::Matrix< int > &mat) throw (ImageTransformException&) |
| The function makes the co-occurence matrix for the specified direction(s). | |
| double | getFeature (const util::Matrix< int > &mat, Feature feature, int k=1, int n=1) |
| Calculate a feature from a co-occurrence matrix. | |
| util::List< double > | getFeatureVector (const util::Matrix< int > &mat) throw (FeatureExtractionException&) |
| Create a feature vector containing all co-occurrence features listed in the Feature enumeration. | |
|
|
An enumeration for the features calculated from co-occurrence matrices. Possibilities: MOMENT - The k element difference moment.[ Sum(Sum((i-j)'k*mat(i,j))) ] INVERSE_MOMENT - The k element inverse difference moment. [ Sum(Sum(mat(i,j)/(i-j)'k ] CONTRAST - The contrast. [ Sum(Sum( |i-j|'k*mat(i,j)'n ] HOMOGENITY - Homogenity. [ Sum(Sum(mat(i,j)/(i+ |i-j|))) ENTROPY - Entropy. [ -Sum(Sum(mat(i,j)*log(mat(i,j)))) ] |
|
||||||||||||
|
The constructor of CoOccurence matrix.
|
|
||||||||||||||||||||
|
Calculate a feature from a co-occurrence matrix.
|
|
|
Create a feature vector containing all co-occurrence features listed in the Feature enumeration.
Implements prapi::FeatureExtractor< double, util::Matrix< int > >. |
|
|
The function makes the co-occurence matrix for the specified direction(s). The returned matrices will be of size NxN where N = min(256,max(mat)).
Implements prapi::ImageTransform< int, int >. |