title: Convert boolean matrtix to image matrix in python
body: <p>I have obtained boolean matrix from sauvola thresholding using scikit image library now I want to do further processing like blob detection on image. How to convert map boolean matrix to grayscale binary image in python.
  Followed this link <a href="https://stackoverflow.com/a/47667753/9155046">https://stackoverflow.com/a/47667753/9155046</a>
  but the output image need to be mapped to grayscale.</p>