Documentation - C API
lbp.c File Reference

Local Binary Patterns - Definition. More...

#include "lbp.h"
#include "mathop.h"

Functions

VlLbpvl_lbp_new (VlLbpMappingType type, vl_bool transposed)
 Create a new LBP object.
void vl_lbp_delete (VlLbp *self)
 Delete VlLbp object.
void vl_lbp_process (VlLbp *self, float *features, float *image, vl_size width, vl_size height, vl_size cellSize)
 Extract LBP features.

Detailed Description

Author:
Andrea Vedaldi

Function Documentation

void vl_lbp_delete ( VlLbp self)
Parameters:
selfobject to delete.
VlLbp* vl_lbp_new ( VlLbpMappingType  type,
vl_bool  transposed 
)
Parameters:
typetype of LBP features.
transposedif true, then transpose each LBP pattern.
Returns:
new VlLbp object instance.
void vl_lbp_process ( VlLbp self,
float *  features,
float *  image,
vl_size  width,
vl_size  height,
vl_size  cellSize 
)
Parameters:
selfLBP object.
featuresbuffer to write the features to.
imageimage.
widthimage width.
heightimage height.
cellSizesize of the LBP cells.

features is a numColumns x numRows x dimension where dimension is the dimension of a LBP feature obtained from vl_lbp_get_dimension, numColumns is equal to floor(width / cellSize), and similarly for numRows.