title: How to convert an image from CV_8UC1 to CV_32FC1 type in opencv?
body: <p>I readed an image which type of it is CV_8UC1, and I want to convert it to CV_32FC1.but when I use convertTO() function my image become completely white and I don't know why! </p>
  
  <pre><code>Mat Image(512,512,CV_32FC1);     
  Image = imread("C:\\MGC.jpg",CV_LOAD_IMAGE_GRAYSCALE);   
  
  /// show image
  namedWindow("pic");
  int x = 0; int y = 0;
  imshow("pic", Image);
  
  cout&lt;&lt;Image.type()&lt;&lt;endl;
  Image.convertTo(Image,CV_32FC1);
  cout&lt;&lt;Image.type()&lt;&lt;endl;
  
  ////show converted image 
  namedWindow("pic1");
  imshow("pic1",Image );
  </code></pre>