<< mogrify SIP - Scilab Image Processing Toolbox ntsc2rgb >>

SIP - Scilab Image Processing Toolbox >> SIP - Scilab Image Processing Toolbox > normal

normal

Normalize array to a given range

Calling Sequence

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 lowerupper 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,upper,lower) normalizes N to lower-upper range.

Examples

initial_dir = PWD;
chdir (SIPDIR + 'images');

Img = gray_imread('gra.jpg');
min(Img)
max(Img)
N = normal(Img,255);
min(N)
max(N)

chdir(initial_dir);

Authors

Availability

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

http://siptoolbox.sourceforge.net

See Also


<< mogrify SIP - Scilab Image Processing Toolbox ntsc2rgb >>