clc
clear all
close all

for i=1200:1400

A=imread(['../bitmaps_0_60/test' num2str(i)],'bmp');



B=zeros(240,320,3);
C=zeros(240,320);
c=uint8(C);

B=uint8(B);
B(:,:,1)=A;
B(:,:,2)=A;
B(:,:,3)=A;

exaust = A>(60/100*255);

[sl,sc]=find(exaust);

for j=1:size(sc)
    B(sl(j),sc(j),1)=255;        
    B(sl(j),sc(j),2)=0;
    B(sl(j),sc(j),3)=0;
end



imshow(B);

pause

end