# normalizecv

Normalizes image, `handle`

## Syntax

R = normalizecv(handle...)

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

## Inputs

`handle`- Handle of an image.
`alpha`- Optional alpha value, defaults to 1.
`beta`- Optional beta value, defaults to 0.
`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

`depth`- Depth of
`R`. Ant negative value will result in the same depth as`handle`. `mask`- Optional mask to normalize a sub array. Can be [], image handle or a 2D array.

## Outputs

- R
- Handle of the normalized output image.

## Example

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