how to view the bit planes of an image?

조회 수: 2 (최근 30일)
matlab9000
matlab9000 2018년 4월 4일
답변: Image Analyst 2018년 4월 4일
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.

Community Treasure Hunt

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

Start Hunting!

Translated by