ccv

A Modern Computer Vision Library

View the Project on GitHub liuliu/ccv

lib/ccv_icf.c

ccv_icf_classifier_cascade_new

ccv_icf_classifier_cascade_new(ccv_array_t *posfiles, int posnum, ccv_array_t *bgfiles, int negnum, ccv_array_t *testfiles, const char *dir, ccv_icf_new_param_t params)

Create a new ICF classifier cascade from given positive examples and background images. This function has a hard dependency on GSL and better be used with libdispatch for maximum efficiency.

return: A trained classifier cascade.

ccv_icf_new_param_t

ccv_icf_param_t

ccv_icf_classifier_cascade_soft

void ccv_icf_classifier_cascade_soft(ccv_icf_classifier_cascade_t *cascade, ccv_array_t *posfiles, double acceptance)

Compute soft cascade thresholds to speed up the classifier cascade performance.

ccv_icf_read_classifier_cascade

ccv_icf_read_classifier_cascade(const char *filename)

Read a ICF classifier from a file.

return: The classifier cascade, 0 if no valid classifier cascade available.

ccv_icf_write_classifier_cascade

void ccv_icf_write_classifier_cascade(ccv_icf_classifier_cascade_t *classifier, const char *filename)

Write a ICF classifier to a file.

ccv_icf_classifier_cascade_free

void ccv_icf_classifier_cascade_free(ccv_icf_classifier_cascade_t *classifier)

Free up the memory of ICF classifier cascade.

ccv_icf_detect_objects

ccv_icf_detect_objects(ccv_dense_matrix_t *a, void *cascade, int count, ccv_icf_param_t params)

Using a ICF classifier cascade to detect objects in a given image. If you have several classifier cascades, 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_comp_t with detection results.

‹  back 

comments powered by Disqus