clear
close all
I=imread('E:\lena.bmp');
imshow(I),figure,imhist(I);
J=imadjust(I,[0.3 0.7],[]);
figure,imshow(J);
figure,imhist(J);