Debian Codegraph @

src/thirdparty/VLFeat/lbp.h

raw
1 /** @file lbp.h
2 ** @brief Local Binary Patterns (LBP) descriptor (@ref lbp)
3 ** @author Andrea Vedaldi
4 **/
5
6 /*
7 Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
8 All rights reserved.
9
10 This file is part of the VLFeat library and is made available under
11 the terms of the BSD license (see the COPYING file).
12 */
13
14 #ifndef VL_LBP_H
15 #define VL_LBP_H
16
17 #include "generic.h"
18
19 /** @brief Type of quantization for the LBP descriptors
20 ** @see @ref lbp-quantization
21 **/
22 typedef enum _VlLbpMappingType
23 {
24 VlLbpUniform /**< Uniform local binary patterns. */
25 } VlLbpMappingType ;
26
27 /** @brief Local Binary Pattern extractor */
28 typedef struct VlLbp_
29 {
30 vl_size dimension ;
31 vl_uint8 mapping [256] ;
32 vl_bool transposed ;
33 } VlLbp ;
34
35 VL_EXPORT VlLbp * vl_lbp_new(VlLbpMappingType type, vl_bool transposed) ;
36 VL_EXPORT void vl_lbp_delete(VlLbp * self) ;
37 VL_EXPORT void vl_lbp_process(VlLbp * self,
38 float * features,
39 float * image, vl_size width, vl_size height,
40 vl_size cellSize) ;
41 VL_EXPORT vl_size vl_lbp_get_dimension(VlLbp * self) ;
42
43 /* VL_LBP_H */
44 #endif