Defines | Functions
lbp.c File Reference

Local Binary Patterns (LBP) - Definition. More...

#include "lbp.h"
#include "mathop.h"
#include "string.h"
Include dependency graph for lbp.c:

Go to the source code of this file.

Defines

#define at(u, v)   (*(image + width * (v) + (u)))
#define to(u, v, w)   (*(features + cstride * (w) + cwidth * (v) + (u)))

Functions

static void _vl_lbp_init_uniform (VlLbp *self)
void vl_lbp_delete (VlLbp *self)
 Delete VlLbp object.
VL_EXPORT vl_size vl_lbp_get_dimension (VlLbp *self)
 Get the dimension of the LBP histograms.
VlLbpvl_lbp_new (VlLbpMappingType type, vl_bool transposed)
 Create a new LBP object.
VL_EXPORT void vl_lbp_process (VlLbp *self, float *features, float *image, vl_size width, vl_size height, vl_size cellSize)
 Extract LBP features.

Detailed Description

Local Binary Patterns (LBP) - Definition.

Author:
Andrea Vedaldi

Definition in file lbp.c.


Define Documentation

#define at (   u,
 
)    (*(image + width * (v) + (u)))
#define to (   u,
  v,
 
)    (*(features + cstride * (w) + cwidth * (v) + (u)))

Function Documentation

static void _vl_lbp_init_uniform ( VlLbp self) [static]

Definition at line 172 of file lbp.c.

void vl_lbp_delete ( VlLbp self)

Delete VlLbp object.

Parameters:
selfobject to delete.

Definition at line 238 of file lbp.c.

VL_EXPORT vl_size vl_lbp_get_dimension ( VlLbp self)

Get the dimension of the LBP histograms.

Returns:
dimension of the LBP histograms. The dimension depends on the type of quantization used.
See also:
vl_lbp_new().

Definition at line 248 of file lbp.c.

VlLbp* vl_lbp_new ( VlLbpMappingType  type,
vl_bool  transposed 
)

Create a new LBP object.

Parameters:
typetype of LBP features.
transposedif true, then transpose each LBP pattern.
Returns:
new VlLbp object instance.

Definition at line 218 of file lbp.c.

VL_EXPORT void vl_lbp_process ( VlLbp self,
float *  features,
float *  image,
vl_size  width,
vl_size  height,
vl_size  cellSize 
)

Extract LBP features.

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.

Definition at line 270 of file lbp.c.



libvlfeat
Author(s): Andrea Vedaldi
autogenerated on Thu Jun 6 2019 20:25:52