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

For each pixel, a local neighborhood is formed, and the difference between the center pixel and one of the neighbors is calculated. The difference is used as a feature value for the center pixel. Assuming 8 bit matrices, the signed differences vary in range [-255,255].
Public Methods | |
| SgnDiff (unsigned int predicate=1) | |
| Create a SgnDiff object that calculates the signed difference with the given distance, i.e. | |
| T | getValue (int center, util::List< T > &surrounding) |
| void | setDifferenceIndex (unsigned int index) throw (util::InvalidArgumentException&) |
| Set the difference index. | |
| unsigned int | getDifferenceIndex () const |
| Get the difference index. | |
|
||||||||||
|
Create a SgnDiff object that calculates the signed difference with the given distance, i.e. predicate. |
|
||||||||||
|
Set the difference index. The number of samples in CircularLocalSampler determines the maximum possible difference index. By default, 0 is used, which typically means the difference in positive x axis direction.
|