ccv

A Modern Computer Vision Library

View the Project on GitHub liuliu/ccv

lib/ccv_transform.c

ccv_decimal_slice

void ccv_decimal_slice(ccv_dense_matrix_t *a, ccv_dense_matrix_t **b, int type, float y, float x, int rows, int cols)

Similar to ccv_slice, it will slice a given matrix into required rows / cols, but it will interpolate the value with bilinear filter if x and y is non-integer.

ccv_perspective_transform_apply

ccv_decimal_point_t ccv_perspective_transform_apply(ccv_decimal_point_t point, ccv_size_t size, float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)

Apply a 3D transform against the given point in a given image size, assuming field of view is 60 (in degree).

ccv_perspective_transform

void ccv_perspective_transform(ccv_dense_matrix_t *a, ccv_dense_matrix_t **b, int type, float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)

Apply a 3D transform on a given matrix, assuming field of view is 60 (in degree).

‹  back 

comments powered by Disqus