Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Read a gray scale or monochrome image with alpha channel

$
0
0
Repeating a [question](http://stackoverflow.com/questions/39503233/opencv-read-a-gray-scale-or-monochrome-image-with-alpha-channel) from stackoverflow. How can I read a gray scale image in OpenCV with alpha channel? For example, if I try to read the following image, all I get is 2d array of all zeros. ![C:\fakepath\1.png](/upfiles/14739161969016586.png) image = cv2.imread('1.png', cv2.IMREAD_UNCHANGED) image.shape (480, 960)

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>