NORMAL(1)

NAME
normal - normalize array to a given range

SYNOPSIS
N = normal(M, upper, lower)

PARAMETERS

M   array

N   normalized array

upper and lower
    range limits of N. lower defaults to 0. upper defaults to 1.

DESCRIPTION
Function normal normalizes a matrix M to occupy lower-upper range. The intent of this function is to be a shortcut to a simple but often used operation.

N = normal(M) normalizes N to 0-1 range.

N = normal(M,upper) normalizes N to 0-upper range.

N = normal(M,lower,upper) normalizes N to lower-upper range.

EXAMPLE
initial_dir = PWD;
chdir (SIPDIR + 'examples');
Img = imread('gra.jpg');
mini(Img)
maxi(Img)
N = normal(Img,255);
mini(Img)
maxi(Img)
chdir(initial_dir);

AUTHORS
Ricardo Fabbri <rfabbri@if.sc.usp.br>

AVAILABILITY
The latest version of the Scilab Image Processing toolbox can be found at

    http://cyvision.if.sc.usp.br/~rfabbri/sip/

SEE ALSO
imshow