<< imgraythresh Image Types and Color Space Conversions ind2rgb >>

IPCV - Image Processing and Computer Vision Toolbox for Scilab >> Image Types and Color Space Conversions > imnorm

imnorm

Normalize input 2-D Image to the range of 0-1 for double, or 0-255 for uint8

Syntax

y = imnorm(x)

Parameters

x :

Input 2-D matrix

y :

Normalized output matrix

Description

This function is used to normalized the 2-D matrix to the range of 0-1, or 0-255 for uint8, to ensure the 2-D matrix follows the image representation standard in double or uint8 format.

Examples

s = rand(5,5);
s2 = imnorm(s);
disp(s2);

See also

Authors


Report an issue
<< imgraythresh Image Types and Color Space Conversions ind2rgb >>