CaptureImage.correctGamma Method

Module: CaptureImage

Definition

Applies a gamma correction to the image.

correct_gamma(self, contrast: int, brightness: int, gamma: float) -> None

Parameters

contrast int
in Contrast coefficient, from -255 to 255, to be applied to the image.

brightness int
in Brightness coefficient, from -255 to 255, to be applid to the image.

gamma float
in Gamma coefficient, from 0.25 to 2.50, to be applied to the image.

Exceptions

An error has occurred during Devices Library execution.
void correctGamma(int contrast, int brightness, double gamma)

Parameters

contrast int
in Contrast coefficient, from -255 to 255, to be applied to the image.

brightness int
in Brightness coefficient, from -255 to 255, to be applid to the image.

gamma double
in Gamma coefficient, from 0.25 to 2.50, to be applied to the image.

Exceptions

An error has occurred during Devices Library execution.
public void CorrectGamma(int contrast, int brightness, float gamma)

Parameters

contrast int
in Contrast coefficient, from -255 to 255, to be applied to the image.

brightness int
in Brightness coefficient, from -255 to 255, to be applid to the image.

gamma float
in Gamma coefficient, from 0.25 to 2.50, to be applied to the image.

Exceptions

An error has occurred during Devices Library execution.
public void correctGamma(int contrast, int brightness, float gamma) throws DevicesException

Parameters

contrast int
in Contrast coefficient, from -255 to 255, to be applied to the image.

brightness int
in Brightness coefficient, from -255 to 255, to be applid to the image.

gamma float
in Gamma coefficient, from 0.25 to 2.50, to be applied to the image.

Exceptions

An error has occurred during Devices Library execution.
int id3DevicesCaptureImage_CorrectGamma (
    ID3_DEVICES_CAPTURE_IMAGE hCaptureImage,
    int contrast,
    int brightness,
    float gamma)

Parameters

in Handle to the CaptureImage object.

contrast int
in Contrast coefficient, from -255 to 255, to be applied to the image.

brightness int
in Brightness coefficient, from -255 to 255, to be applid to the image.

gamma float
in Gamma coefficient, from 0.25 to 2.50, to be applied to the image.

Returns

int
An error code.
See id3DevicesError file for the list of possible error codes.