title: convert image from CV_64F to CV_8U
body: <p>I want to convert an image of type <code>CV_64FC1</code> to <code>CV_8UC1</code> in Python using OpenCV.</p>
  
  <p>In C++, using <code>convertTo</code> function, we can easily convert image type using following code snippet:</p>
  
  <pre><code>image.convertTo(image, CV_8UC1);
  </code></pre>
  
  <p>I have searched on Internet but unable to find any solution without errors. Any function in Python OpenCV to convert this?</p>