the python hessian affine keypoint module
idea: dropout several pixels?
TODO: redo in cyth
Casts an array pointer from C to numpy Input:
c_arrpt - an array pointer returned from C shape - shape of that array pointer arr_t - the ctypes datatype of c_arrptr
main driver function for detecting hessian affine keypoints. extra parameters can be passed to the hessian affine detector by using kwargs.
Input: A list of image paths Output: A tuple of lists of keypoints and descriptors
size_list - contains the size of each output 2d array ptr_list - an array of pointers to the head of each output 2d
array (which was allocated in C)
arr_t - the C pointer type arr_dtype - the numpy array type arr_dim - the number of columns in each output 2d array
Specificially loads the hesaff lib and defines its functions
alias of LP_c_char_p
Search for the library
input <root_dir>: deepest directory to look for a library (dll, so, dylib) returns <libnames>: list of plausible directories to look.
input <libname>: library name (e.g. ‘hesaff’, not ‘libhesaff’) returns <libnames>: list of plausible library file names
Does the work. :param libname: library name (e.g. ‘hesaff’, not ‘libhesaff’)
Parameters: | root_dir – the deepest directory searched for the library file (dll, dylib, or so). |
---|---|
Returns: | a ctypes object used to interface with the library |
Return type: | clib |