How can I read png file as binary (0 and 1) in Matlab? -
i can read bmp file binary ( imread('char/c.bmp') => ans=[1 1 0 0 0] ) when comes png files cannot ( imread('char/c.png') => ans=[9 7 7 7 7 2] ).
should convert binary form?
use im2bw convert image binary image.
Comments
Post a Comment