Inheritance diagram for prapi::texture::Variance:
The variance for a pixel is defined to be the variance of the surrounding pixels, i.e. C=1/N*sumi=1..N((pi-m)2), where N is the number of circular neighbors for a pixel, pi is the ith circular neighbor, and m is the mean value of the neighborhood, i.e. m=1/N*sumi=1..N(pi).
|Variance (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 >.