pyhesaff package

Submodules

pyhesaff._pyhesaff module

the python hessian affine keypoint module

idea: dropout several pixels?

TODO: redo in cyth

pyhesaff._pyhesaff.adapt_rotation(img_fpath, kpts)[source]
pyhesaff._pyhesaff.adapt_scale(img_fpath, kpts)[source]
pyhesaff._pyhesaff.arrptr_to_np(c_arrptr, shape, arr_t, dtype)[source]

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
pyhesaff._pyhesaff.detect_kpts(img_fpath, use_adaptive_scale=False, nogravity_hack=False, **kwargs)[source]

main driver function for detecting hessian affine keypoints. extra parameters can be passed to the hessian affine detector by using kwargs.

pyhesaff._pyhesaff.detect_kpts_list(image_paths_list, **kwargs)[source]

Input: A list of image paths Output: A tuple of lists of keypoints and descriptors

pyhesaff._pyhesaff.extract_2darr_list(size_list, ptr_list, arr_t, arr_dtype, arr_dim)[source]

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

pyhesaff._pyhesaff.extract_desc(img_fpath, kpts, **kwargs)[source]
pyhesaff._pyhesaff.load_hesaff_clib()[source]

Specificially loads the hesaff lib and defines its functions

pyhesaff._pyhesaff.str_list_t

alias of LP_c_char_p

pyhesaff.ctypes_interface module

pyhesaff.ctypes_interface.find_lib_fpath(libname, root_dir, recurse_down=True, verbose=False)[source]

Search for the library

pyhesaff.ctypes_interface.get_lib_dpath_list(root_dir)[source]

input <root_dir>: deepest directory to look for a library (dll, so, dylib) returns <libnames>: list of plausible directories to look.

pyhesaff.ctypes_interface.get_lib_fname_list(libname)[source]

input <libname>: library name (e.g. ‘hesaff’, not ‘libhesaff’) returns <libnames>: list of plausible library file names

pyhesaff.ctypes_interface.load_clib(libname, root_dir)[source]

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

Module contents

Table Of Contents

Previous topic

Welcome to pyhesaff’s documentation!

Next topic

pyhesaff.tests package

This Page