Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::texture::LBPMapping Class Reference

#include <LBP.h>

List of all members.


Detailed Description

A class for creating mappings for the LBP operator.


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.


Member Enumeration Documentation

enum prapi::texture::LBPMapping::MappingType
 

Predefined mapping types.

  • MAP_UNIFORM: use only patterns that have at most two 1-to-0 or 0-to-1 transitions. Junk the rest in one value.
  • MAP_ROTMIN: rotate patterns to their minimum values.
  • MAP_UNIFORM_ROTMIN: use only uniform patterns and rotate them to their minimum values.
  • MAP_NONE: no mapping


Member Function Documentation

int * prapi::texture::LBPMapping::getMapping int    samples,
MappingType    type
[static]
 

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.

Parameters:
samples  the number of neighborhood samples
type  the type of mapping
Returns:
a look-up table

int prapi::texture::LBPMapping::getSize int    samples,
MappingType    type
[static]
 

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.

Parameters:
samples  the number of neighborhood samples
type  the type of mapping
Returns:
the maximum value of the mapping (plus one, if type != MAP_NONE)


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.