Skip to content

About

Cython wrapper for cv::Mat class

Topics

Resources

Stars

35 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cython wrapper np.array <-> cv::Mat

Implementation of cython wrapper to allow the convertion between a numpy.array and a cv::Mat and the other way arround (cv::Mat to numpy.array).

To build, run python setup.py build_ext --inplace.

Then try :

import opencv_mat
from scipy import misc

im_np = misc.imread(filename/image)
im_np2Mat2np = opencv_mat.np2Mat2np(im_np)

We get back im_np2Mat2np which is the same as im_np.

Feel free to integrate the cdef np2Mat and cdef Mat2np functions to your code!

Used with Python 3.5 and Opencv 3.2

About

Cython wrapper for cv::Mat class

Topics

Resources

Stars

35 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages