ا السلام عليكم ورحمة الله وبركاته
اتمنى منكم تساعدوني ضروري اليوم
تحسين الصور لغة ماتلاب
الموضوع ..(Bitplane Slicing (bitsli.m
% this code gives the darkened image produced by bit slicing
% written by srikanth
a=imread('geo.
a=a(:,:,1);
b=zeros(120,160,8);
for k=1:8
for i=1:120
for j=1:160
b(i,j,k)=bitget(a(i,j),k); % get the pixel color and change
if b(i,j,k)==1; % accordingly
b(i,j,k)=255;
end
end
end
end
for k=1:8
figure,imshow(b(:,:,k));
end
32