function [N]=normalise(I,imin,imax);
[m,n]=size(I);
for i=1:m
	for j=1:n
		N(i,j)=255*(I(i,j)-imin)/(imax-imin);
	end
end;
