title: imshow opencv doens't show image
body: <p>this is my code, when I try to use imshow the image is black</p>
  
  <pre><code>    cv::Mat src(height, width, CV_16U);
      for (int i = 0; i &lt; width* height; ++i)
      {
          src.at&lt;unsigned short&gt;(i) = input_image[i]/1023;
      }
      cv::Mat temp;
      cv::resize(src, temp, cv::Size(), 0.3, 0.3, cv::INTER_LINEAR);
      cv::imshow("image1", temp);
      cv::waitKey(0);
  
      cv::Mat imageData;
      cv::cvtColor(src, imageData, cv::COLOR_BayerGR2RGB);
  
      cv::resize(imageData, temp, cv::Size(), 0.3, 0.3, cv::INTER_LINEAR);
      cv::imshow("image1", temp);
      cv::waitKey(0);
  </code></pre>
  
  <p>if I change my code to </p>
  
  <pre><code>cv::Mat src(height, width, CV_32F);
  for (int i = 0; i &lt; width* height; ++i)
  {
      src.at&lt;float&gt;(i) = input_image[i]/1023;
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/pO16z.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pO16z.jpg" alt="enter image description here"></a></p>
  
  <p>can you explain how to display the image?</p>