See attached demo.
how to view the bit planes of an image?
7 次查看(过去 30 天)
显示 更早的评论
I have separated the eight bit planes of the image like this:
img= imread('cameraman.tif');
primo = bitget(img, 1);
secondo = bitget(img, 2);
terzo = bitget(img, 3);
quarto = bitget(img, 4);
quinto = bitget(img, 5);
sesto = bitget(img, 6);
settimo = bitget(img, 7);
ottavo = bitget(img, 8);
subplot(4,2,1), imshow(primo, []), title('Primo piano di bit');
subplot(4,2,2), imshow(secondo, []), title('Secondo piano di bit');
subplot(4,2,3), imshow(terzo, []), title('Terzo piano di bit');
subplot(4,2,4), imshow(quarto, []), title('Quarto piano di bit');
subplot(4,2,5), imshow(quinto, []), title('Quinto piano di bit');
subplot(4,2,6), imshow(sesto, []), title('Sesto piano di bit');
subplot(4,2,7), imshow(settimo, []), title('Settimo piano di bit');
subplot(4,2,8), imshow(ottavo, []), title('Ottavo piano di bit');
How do I view the bit planes generated by the multiplication of the current plan number by the factor of 2 raised to (n-1), since the plans are only 8?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!