Skip to content

MSc IT

HISTOGRAM STRETCHING

% **** HISTOGRAM STRETCHING **** a=imread(‘old imagelc.jpg’); aa=double(a); [row col]=size(aa); h=zeros(1,300); rmax=(max(max(aa))); rmin=(min(min(aa))); slope=255/(rmax-rmin); smin=0; aa=aa+1; for x=1:row     for y=1:col         c(x,y)=slope*(aa(x,y)-rmin)+smin;     end… Read More »HISTOGRAM STRETCHING

error: Content is protected !!