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!