ccv

A Modern Computer Vision Library

View the Project on GitHub liuliu/ccv

lib/ccv_basic.c

The utilities in this file provides basic pre-processing which, most-likely, are the first steps for computer vision algorithms.

ccv_sobel

void ccv_sobel(ccv_dense_matrix_t *a, ccv_dense_matrix_t **b, int type, int dx, int dy)

Compute image with Sobel operator.

ccv_gradient

void ccv_gradient(ccv_dense_matrix_t *a, ccv_dense_matrix_t **theta, int ttype, ccv_dense_matrix_t **m, int mtype, int dx, int dy)

Compute the gradient (angle and magnitude) at each pixel.

ccv_flip

void ccv_flip(ccv_dense_matrix_t *a, ccv_dense_matrix_t **b, int btype, int type)

Flip the matrix by x-axis, y-axis or both.

ccv_blur

void ccv_blur(ccv_dense_matrix_t *a, ccv_dense_matrix_t **b, int type, double sigma)

Using Gaussian blur on a given matrix. It implements a O(n * sqrt(m)) algorithm, n is the size of input matrix, m is the size of Gaussian filtering kernel.

‹  back 

comments powered by Disqus