title: imshow() in OpenCV doesn't work for cv::Mat type CV_32F?
body: <p>I have a float array </p>
  
  <pre><code>float* data; // stores pixel gray color 
  cv::Mat img(h,w,CV_32F,data);
  cv::namedWindow("Display window");
  cv::imshow( "Display window", img );
  </code></pre>
  
  <p>Then what I get is :</p>
  
  <p><img src="https://i.stack.imgur.com/OmBbm.jpg" alt="enter image description here"></p>
  
  <p>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.</p>
  
  <p>Can anyone tell me the reason?</p>