ccv

A Modern Computer Vision Library

View the Project on GitHub liuliu/ccv

lib/ccv_resample.c

ccv_resample

void ccv_resample(ccv_dense_matrix_t *a, ccv_dense_matrix_t **b, int btype, int rows, int cols, int type)

Resample a given matrix to different size, as for now, ccv only supports either downsampling (with CCV_INTER_AREA) or upsampling (with CCV_INTER_CUBIC).

ccv_sample_down

void ccv_sample_down(ccv_dense_matrix_t *a, ccv_dense_matrix_t **b, int type, int src_x, int src_y)

Downsample a given matrix to exactly half size with a Gaussian filter. The half size is approximated by floor(rows * 0.5) x floor(cols * 0.5).

ccv_sample_up

void ccv_sample_up(ccv_dense_matrix_t *a, ccv_dense_matrix_t **b, int type, int src_x, int src_y)

Upsample a given matrix to exactly double size with a Gaussian filter.

‹  back 

comments powered by Disqus