Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

mypython_umat = cv2.UMat(myNumpyMat)

or

mypython_umat = cv2.UMat(myOpenCVMat)

or:

UMat img = imread( "lena.jpg", IMREAD_COLOR ).getUMat( ACCESS_READ );

or directly:

data_dst_um = cv.UMat(128, 128, cv.CV_64F) # from size/type