saturatecastcv

Saturates the image handle with a contrast and brightness.

Syntax

R = saturatecastcv(handle, contrast, brightness)

Inputs

handle
Handle of an image.
Type: integer
contrast
Gain to saturate the image, handle, must be nonnegative.
Type: scalar
brightness
Bias to saturate the image, handle
Type: scalar

Outputs

R
Handle of the output image.
Type: integer

Example

Add contrast and brightness to an image:

source = imreadcv('bird4.jpg');
contrast = 3;
brightness = 25;
R = saturatecastcv(source, contrast, brightness);


Figure 1. Input image


Figure 2. Output image