How to convert CV_8UC4 to CV_32FC1 in python?

asked 2018-07-10 12:00:27 -0500

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

edit retag flag offensive close merge delete

Comments

where depthAs8C4 is of type CV_8UC4

if so, the c++ code is already broken :(

show us, at you have in python, and ignore the c++ "solution"

berak gravatar imageberak ( 2018-07-10 23:48:53 -0500 )edit