Revision: 1698
Updated Code
at November 10, 2006 00:12 by whitetiger
Updated Code
% Ritorna i Bit Plabes dell'immagine a toni di grigio function showBitPlanes(img) imgGray = double( rgb2gray(img) ); titleString = 'bit planes '; % MSB ... LSB k = 128; for b=1:8 subplot(2, 4, b); imshow( (bitand(imgGray, k) / k) * 255 ); % Fa un and dei bit title([titleString int2str(b-1)]); k = k/2; % Shifta di 2 i bit end; return;
Revision: 1697
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 9, 2006 23:54 by whitetiger
Initial Code
% Ritorna i Bit Plabes dell'immagine a toni di grigio function showBitPlanes(img) imgGray = double( rgb2gray(img) ); titleString = 'bit planes '; % MSB ... LSB k = 128; for b=1:8 subplot(2, 4, b); imshow( (bitand(imgGray, k) / k) * 255 ); % Fa un and dei bit title([titleString int2str(b-1)]); k = k/2; % Shifta di 2 i bit end; return;
Initial URL
Initial Description
Initial Title
Matlab - showBitPlanes
Initial Tags
css, javascript, image, java, python, osx, filter, images
Initial Language
MatLab