Code for the above figure;
for i=1:2112 % (image rows) for j=1:2816 % (image cols)
for i=1:2112 % (image rows)
for j=1:2816 % (image cols)
if contrastAdjusted(i,j)<110 < 110
ff(i,j) = 1;
else
ff(i,j)=0; = 0;
end
end
end
imshow(ff);