how to view the bit planes of an image?

6 次查看(过去 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?

回答(1 个)

Image Analyst
Image Analyst 2018-4-4
See attached demo.

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by