All Projects → solivr → cython_opencvMat

solivr / cython_opencvMat

Licence: MIT license
Cython wrapper for cv::Mat class

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to cython opencvMat

tinyaes-py
tiny-AES-c wrapper in Cython
Stars: ✭ 33 (+6.45%)
Mutual labels:  cython-wrapper
pyrodigal
Cython bindings and Python interface to Prodigal, an ORF finder for genomes and metagenomes. Now with SIMD!
Stars: ✭ 38 (+22.58%)
Mutual labels:  cython-wrapper
URT
Fast Unit Root Tests and OLS regression in C++ with wrappers for R and Python
Stars: ✭ 70 (+125.81%)
Mutual labels:  cython-wrapper
blend2d-python
Cython wrapper for Blend2D
Stars: ✭ 13 (-58.06%)
Mutual labels:  cython-wrapper
palace
Migrated to https://sr.ht/~cnx/palace
Stars: ✭ 12 (-61.29%)
Mutual labels:  cython-wrapper

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].