title: How to save a binary image(with dtype=bool) using cv2?
body: <p>I am using opencv in python and want to save a binary image(dtype=bool). If I simply use cv2.imwrite I get following error:</p>
  
  <pre><code>TypeError: image data type = 0 is not supported
  </code></pre>
  
  <p>Can someone help me with this? The image is basically supposed to work as mask later. </p>