function imOut = mean_imnorm(im)% O = IMNORM(I)Image normalization
% imwrite doesnt seem to do any normalizing, so i do it here.
% normalizes to the range (0,1).
imOut = im;% normalize
imMin = mean(imOut(:));if (imMin < 0) imOut = imOut + abs(imMin);endimOut = imOut ./ max(imOut(:));
MATLAB: Can u pls explain it
Image Processing Toolboxnormalization
Best Answer