Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::texture::LBP8 Class Reference

#include <LBP.h>

Inheritance diagram for prapi::texture::LBP8:

prapi::texture::LBPExtractor< int > prapi::texture::CircularLocalSampler< int, int > prapi::FeatureExtractor< int, util::Matrix< int > > prapi::ImageTransform< int, int > Object List of all members.

Detailed Description

An optimized implementation of the 8-bit LBP operator for integer-valued matrices.

This version can only be used with integer-valued neighborhood radii.


Public Methods

 LBP8 (unsigned int predicate=1u, bool interpolate=true)
 Create a new LBP8 feature extractor.

void setSamples (unsigned int samples)
 Do nothing.

util::List< int > getFeatureVector (const util::Matrix< int > &mat) throw (FeatureExtractionException&)
util::Matrix< int > getTransformedImage (const util::Matrix< int > &mat) throw (ImageTransformException&)
 Goes through each matrix pixel, calculates the neighborhood values using the defined sample count and predicate, either with or without interpolation.


Member Function Documentation

Matrix< int > prapi::texture::LBP8::getTransformedImage const util::Matrix< int > &    mat throw (ImageTransformException&) [virtual]
 

Goes through each matrix pixel, calculates the neighborhood values using the defined sample count and predicate, either with or without interpolation.

For each neighborhood, calls getValue(U, List<U>&) and stores the returned value into the transformed matrix. The size of the resulting matrix is smaller than the input due to border effects. If you set the radius of the neighborhood to 3, the width and height of the result matrix will be 4 (=(3-1)*2) pixels smaller than those of the input.

Parameters:
mat  the input matrix
Returns:
the transformed matrix

Reimplemented from prapi::texture::CircularLocalSampler< int, int >.

void prapi::texture::LBP8::setSamples unsigned int    samples [inline]
 

Do nothing.

Prevent the user from setting the number of samples.

Reimplemented from prapi::texture::CircularLocalSampler< int, int >.


The documentation for this class was generated from the following files:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.