convertscaleabscv

Scales image, handle, calculates absolute values and converts to 8-bit

Syntax

R = convertscaleabscv(handle...)

R = convertscaleabscv(handle, alpha, beta)

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

Outputs

R
Handle of the output image.
Type: integer

Example

Scales image and calculates absolute values after Sobel derivatives have been computed:

handle = imreadcv('image1.jpg', 0);
shandle = sobelcv(handle1, -1, 1, 0);
R = convertscaleabscv(shandle);
Figure 1. Input image


Figure 2. Output image