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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -