normalizecv

Normalizes image, handle

Syntax

R = normalizecv(handle...)

R = normalizecv(handle, alpha, beta, type, depth, mask)

Inputs

handle
Handle of an image.
Type: integer
alpha
Optional alpha value, defaults to 1.
Type: scalar
beta
Optional beta value, defaults to 0.
Type: scalar
type
Optional parameter specifying the normalization type. Default value is 4. Valid values are:
1
Type cv::NORM_INF.
2
Type cv::NORM_L1
4
Type cv::NORM_L2 - default
5
Type cv::NORM_L2SQR - default
6
Type cv::NORM_HAMMING
7
Type cv::NORM_HAMMING2
8
Type cv::NORM_RELATIVE
32
Type cv::NORM_MINMAX
Type: integer
depth
Depth of R. Ant negative value will result in the same depth as handle.
Type: integer
mask
Optional mask to normalize a sub array. Can be [], image handle or a 2D array.
Type: matrix | integer

Outputs

R
Handle of the normalized output image.
Type: integer

Example

Normalizes an image:

handle = imreadcv('rainier.jpg');
alpha = 255;
beta = 220;
type = 32; % NORM_MINMAX
 R = normalizecv(handle, alpha, beta, type);


Figure 1. Input image


Figure 2. Output image