% Scale the pixel values to interval [0,1]
%
% Samuli Siltanen Nov 2015

function result = MyScaleIm(im)

im     = im-min(im(:));
result = im/max(im(:));