00001 00006 /* 00007 Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson. 00008 All rights reserved. 00009 00010 This file is part of the VLFeat library and is made available under 00011 the terms of the BSD license (see the COPYING file). 00012 */ 00013 00014 #ifndef VL_LBP_H 00015 #define VL_LBP_H 00016 00017 #include "generic.h" 00018 00022 typedef enum _VlLbpMappingType 00023 { 00024 VlLbpUniform 00025 } VlLbpMappingType ; 00026 00028 typedef struct VlLbp_ 00029 { 00030 vl_size dimension ; 00031 vl_uint8 mapping [256] ; 00032 vl_bool transposed ; 00033 } VlLbp ; 00034 00035 VL_EXPORT VlLbp * vl_lbp_new(VlLbpMappingType type, vl_bool transposed) ; 00036 VL_EXPORT void vl_lbp_delete(VlLbp * self) ; 00037 VL_EXPORT void vl_lbp_process(VlLbp * self, 00038 float * features, 00039 float * image, vl_size width, vl_size height, 00040 vl_size cellSize) ; 00041 VL_EXPORT vl_size vl_lbp_get_dimension(VlLbp * self) ; 00042 00043 /* VL_LBP_H */ 00044 #endif