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?
If your image is a single channel one, then you convert it to
CV_8U
by: