Ask Your Question

Revision history [back]

How to convert CV_8UC4 to CV_32FC1 in python?

What is the python equivalent of

cv::Mat depthMap = cv::Mat(depthAs8C4.rows, depthAs8C4.cols, CV_32FC1, depthAs8C4.data).clone();

where depthAs8C4 is of type CV_8UC4