how to Extract the most significant bit plane (MSB) and the least significant bit plane (LSB) of the Boy image and print the binary image of each bit plane
17 次查看(过去 30 天)
显示 更早的评论
can anyone tell me how to Extract the most significant bit plane (MSB) and the least significant bit plane (LSB) of the any image and print the binary image of each bit plane. using matlab and java? if possible c or C++
i know the bit plane slicing but i don't want slicing A=imread('coins.png');
B=bitget(A,1); figure, subplot(2,2,1);imshow(logical(B));title('Bit plane 1');
B=bitget(A,2); subplot(2,2,2);imshow(logical(B));title('Bit plane 2');
B=bitget(A,3); subplot(2,2,3);imshow(logical(B));title('Bit plane 3');
B=bitget(A,4); subplot(2,2,4);imshow(logical(B));title('Bit plane 4');
B=bitget(A,5); figure, subplot(2,2,1);imshow(logical(B));title('Bit plane 5');
B=bitget(A,6); subplot(2,2,2);imshow(logical(B));title('Bit plane 6');
B=bitget(A,7); subplot(2,2,3);imshow(logical(B));title('Bit plane 7');
B=bitget(A,8); subplot(2,2,4);imshow(logical(B));title('Bit plane 8');
is this the way we get the MSB - LSB?
or some other way?
0 个评论
回答(1 个)
Image Analyst
2013-5-27
I'm pretty sure I already gave that to you in your duplicate question: http://www.mathworks.com/matlabcentral/answers/76991#comment_151134 If not, explain why not.
5 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!