Skip to content

Image Processing Practicals

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

BIT PLANE SLICING

% **** BIT PLANE SLICING **** a=imread(‘Moon.tif’); b=double(a); [row col]=size(b); %r=input(‘enter bitval :  ‘); for x=1:row     for y=1:col         c=dec2bin(b(x,y),8);         d=c(1);         w1(x,y)=double(d);… Read More »BIT PLANE SLICING

error: Content is protected !!