on-internet
← Community

imshow() in OpenCV doesn't work for cv::Mat type CV_32F? [duplicate]

Stack Overflow ·

I have a float array float* data; // stores pixel gray color cv::Mat img(h,w,CV_32F,data); cv::namedWindow("Display window"); cv::imshow( "Display window", img ); Then what I get is : I searched for many resources but couldnt find out. I doubt it's the problem of the type but I compared with the definition and I think it's ok. Can anyone tell me the reason?

Comments

Sign in or sign up to comment and upvote.

No comments yet.