ccv

A Modern Computer Vision Library

View the Project on GitHub liuliu/ccv

lib/ccv_io.c

ccv_write

int ccv_write(ccv_dense_matrix_t *mat, char *out, int *len, int type, void *conf)

Write image to a file. This function has soft dependencies on LibJPEG and LibPNG. No these libraries, no JPEG nor PNG write support.

ccv_read

int ccv_read(const char *in, ccv_dense_matrix_t **x, int type)

Read image from a file. This function has soft dependencies on LibJPEG and LibPNG. No these libraries, no JPEG nor PNG read support. However, ccv does support BMP read natively (it is a simple format after all).

ccv_read

int ccv_read(const void *data, ccv_dense_matrix_t **x, int type, int size)

Read image from a a region of memory that conforms a specific image format. This function has soft dependencies on LibJPEG and LibPNG. No these libraries, no JPEG nor PNG read support. However, ccv does support BMP read natively (it is a simple format after all).

ccv_read

int ccv_read(const void *data, ccv_dense_matrix_t **x, int type, int rows, int cols, int scanline)

Read image from a region of memory that assumes specific layout (RGB, GRAY, BGR, RGBA, ARGB, RGBA, ABGR, BGRA). By default, this method will create a matrix and copy data over to that matrix. With CCV_IO_NO_COPY, it will create a matrix that has data block pointing to the original data memory region. It is your responsibility to release that data memory at an appropriate time after release the matrix.

‹  back 

comments powered by Disqus