How can I convert Binary image to 2D binary matrix
显示 更早的评论
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 个评论
Walter Roberson
2013-3-25
jpeg file format cannot store indexed (pseudocolor) images, so the map will always be empty for a jpg file.
采纳的回答
更多回答(2 个)
Walter Roberson
2013-3-25
0 个投票
A binary image stored in memory is a binary matrix.
类别
在 帮助中心 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!