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

The contrast for a pixel is defined to be the difference bethween the average gray level of those pixels which have value 1 (bigger than center pixel) and those which have value 0 (less than center pixel).
Public Methods | |
| Contrast (unsigned int samples=8, int predicate=1, bool interpolate=true) | |
| double | getValue (double center, List< double > &surrounding) |
| Subclasses must implement this method to return a transformed value for a center pixel given a known circular neighborhood. | |
|
||||||||||||
|
Subclasses must implement this method to return a transformed value for a center pixel given a known circular neighborhood. The default implementation returns 0. This method is called for each pixel in an matrix from getTransformedImage(Matrix<U>&). For example, the local variance operator returns the variance of the values in surrounding. LBP, in turn, compares each value in surrounding to the value of the center pixel, and builds up a binary code that it then returns.
Reimplemented from prapi::texture::CircularLocalSampler< double, double >. |