السلام عليكم ورحمة الله وبركاته
اتمنى منكم مساعدتي هذا برنامج لغة ماتلاب لتحسين الصور
( Bitplane Slicing (bitsli.m
this code gives the darkened image produced by bit slicing
written by srikanth
; ( a=imread('geo'.jpg
;( 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اطلب منكم شرح لي كل سطر ماعمله
اكثر شي مافهمت هو السطرين الاوال والثاني والطر الي فيه الشرط ifوالسطر الي بعدة