You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

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