ccv

A Modern Computer Vision Library

View the Project on GitHub liuliu/ccv

lib/ccv_dpm.c

ccv_dpm_mixture_model_new

void ccv_dpm_mixture_model_new(char **posfiles, ccv_rect_t *bboxes, int posnum, char **bgfiles, int bgnum, int negnum, const char *dir, ccv_dpm_new_param_t params)

Create a new DPM mixture model from given positive examples and background images. This function has hard dependencies on GSL and LibLinear.

ccv_dpm_new_param_t

ccv_dpm_detect_objects

ccv_dpm_detect_objects(ccv_dense_matrix_t *a, ccv_dpm_mixture_model_t **model, int count, ccv_dpm_param_t params)

Using a DPM mixture model to detect objects in a given image. If you have several DPM mixture models, it is better to use them in one method call. In this way, ccv will try to optimize the overall performance.

return: A ccv_array_t of ccv_root_comp_t that contains the root bounding box as well as its parts.

ccv_dpm_param_t

ccv_dpm_read_mixture_model

ccv_dpm_read_mixture_model(const char *directory)

Read DPM mixture model from a model file.

return: A DPM mixture model, 0 if no valid DPM mixture model available.

ccv_dpm_mixture_model_free

void ccv_dpm_mixture_model_free(ccv_dpm_mixture_model_t *model)

Free up the memory of DPM mixture model.

‹  back 

comments powered by Disqus