#include <LBP.h>
Public Types | |
| enum | MappingType { MAP_UNIFORM, MAP_ROTMIN, MAP_UNIFORM_ROTMIN, MAP_NONE } |
| Predefined mapping types. More... | |
Static Public Methods | |
| int * | getMapping (int samples, MappingType type) |
| Get a mapping look-up table for the given mapping type. | |
| int | getSize (int samples, MappingType type) |
| Get the number of distinct values the given mapping type can produce. | |
|
|
Predefined mapping types.
|
|
||||||||||||
|
Get a mapping look-up table for the given mapping type. The returned value is a newly allocated array of integers in which each item represents the index the particular LBP code should be mapped to. The returned array will take up 2samples*sizeof(int) bytes of memory.
|
|
||||||||||||
|
Get the number of distinct values the given mapping type can produce. This is useful in determining the length of the resulting feature vector when the mapping is in use.
|