I = imread('cameraman.tif');
J = imadjust(I,[0 0.2],[0.5 1]);
imhist(J)
test = J>180;
imshow(test)