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

The template can be used with any bit count and predicate.
Public Types | |
| enum | MappingType { MAP_UNIFORM, MAP_ROTMIN, MAP_UNIFORM_ROTMIN } |
| Predefined mapping types. More... | |
Public Methods | |
| GeneralLBP (unsigned int samples=8u, unsigned int predicate=1u, bool interpolate=true) | |
| Create a new GeneralLBP instance. | |
| GeneralLBP (unsigned int samples, double predicate) | |
| Create a new GeneralLBP instance. | |
| virtual | ~GeneralLBP () |
| util::List< int > | getFeatureVector (const util::Matrix< T > &mat) throw (FeatureExtractionException&) |
| util::Matrix< int > | getTransformedImage (const util::Matrix< T > &mat) throw (ImageTransformException&) |
| Goes through each matrix pixel, calculates the neighborhood values using the defined sample count and predicate, either with or without interpolation. | |
| void | setMapping (int *mapping, int maxVal) |
| Set the look-up table for pattern value mapping. | |
| void | setMapping (LBPMapping::MappingType type) |
| Set the mapping to one of the predefined types. | |
| void | setMapping (MappingType type) |
| int | getMaxValue () const |
| Get the maximum value (+1) this LBP extractor will produce as a feature. | |
| const int * | getMapping () const |
| Get the currently active mapping. | |
| int * | getMapping () |
| Get the currently active mapping. | |
|
|||||
|
Predefined mapping types.
|
|
||||||||||||||||||||
|
Create a new GeneralLBP instance. Example: new GeneralLBP<>(16u,2u);
|
|
||||||||||||||||
|
Create a new GeneralLBP instance. Example: new GeneralLBP<>(24u, 5.3);
|
|
|||||||||
|
Get the currently active mapping.
|
|
|||||||||
|
Get the currently active mapping.
|
|
|||||||||
|
Get the maximum value (+1) this LBP extractor will produce as a feature. This value is determined either by the mapping or by the number of bits. The length of a feature vector produced by getFeatureVector(const Matrix&) equals to the returned value.
|
|
||||||||||
|
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.
Reimplemented from prapi::texture::CircularLocalSampler< int, T >. |
|
||||||||||
|
Set the mapping to one of the predefined types.
|
|
||||||||||||||||
|
Set the look-up table for pattern value mapping. Use setMapping(NULL,-1) to disable the mapping.
|