How can I convert Binary image to 2D binary matrix
Show older comments
I convert an image to binary image, but can't convert binary image to binary matrix.
I have the code so far,
[X,map]= imread('E:/8SEM/PROJECT_ALOK_SIR/picture/t1000.jpg');
BW = im2bw(X,map,0.3);
imshow(X,map), figure, %if we don't use figure we can't see the two images
imshow(BW)
1 Comment
Walter Roberson
on 25 Mar 2013
jpeg file format cannot store indexed (pseudocolor) images, so the map will always be empty for a jpg file.
Accepted Answer
More Answers (2)
Walter Roberson
on 25 Mar 2013
0 votes
A binary image stored in memory is a binary matrix.
Shahed
on 27 Mar 2013
0 votes
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!