c++ convert cv::Mat from CV_8U to CV_32F
16,876
Using convertTo
input.convertTo(output, CV_32F)
Comments
-
MLMLTL almost 2 years
I'm having an issue with OpenCV (Assertion Failure) as the image is being loaded as CV_8U when it should be loaded as CV_32F.
So how can i convert from CV_8U to CV_32F?
Many Thanks.