| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | #ifndef VL_LIOP_H |
| | #define VL_LIOP_H |
| |
|
| | #include "generic.h" |
| |
|
| | |
| | typedef struct _VlLiopDesc |
| | { |
| | vl_int numNeighbours; |
| | vl_int numSpatialBins; |
| | float intensityThreshold; |
| | vl_size dimension; |
| |
|
| | |
| | vl_size patchSideLength ; |
| | vl_size patchSize ; |
| | vl_uindex * patchPixels ; |
| | float * patchIntensities ; |
| | vl_uindex * patchPermutation ; |
| |
|
| | |
| | float neighRadius; |
| |
|
| | float * neighIntensities ; |
| | vl_uindex * neighPermutation ; |
| | double * neighSamplesX ; |
| | double * neighSamplesY ; |
| |
|
| | } VlLiopDesc ; |
| |
|
| | |
| | |
| | VL_EXPORT |
| | VlLiopDesc * vl_liopdesc_new (vl_int numNeighbours, |
| | vl_int numSpatialBins, |
| | float radius, |
| | vl_size sideLength) ; |
| |
|
| | VL_EXPORT |
| | VlLiopDesc * vl_liopdesc_new_basic (vl_size sideLength) ; |
| |
|
| | VL_EXPORT |
| | void vl_liopdesc_delete (VlLiopDesc * self) ; |
| | |
| |
|
| | |
| | |
| | VL_EXPORT vl_size vl_liopdesc_get_dimension (VlLiopDesc const * self) ; |
| | VL_EXPORT vl_size vl_liopdesc_get_num_neighbours (VlLiopDesc const * self) ; |
| | VL_EXPORT float vl_liopdesc_get_intensity_threshold (VlLiopDesc const * self) ; |
| | VL_EXPORT vl_size vl_liopdesc_get_num_spatial_bins (VlLiopDesc const * self) ; |
| | VL_EXPORT double vl_liopdesc_get_neighbourhood_radius (VlLiopDesc const * self) ; |
| | VL_EXPORT void vl_liopdesc_set_intensity_threshold (VlLiopDesc * self, float x) ; |
| | |
| |
|
| | |
| | |
| | VL_EXPORT |
| | void vl_liopdesc_process (VlLiopDesc * liop, float * desc, float const * patch) ; |
| | |
| |
|
| | |
| | #endif |
| |
|