Image.correctGamma Method¶
Module: Image
Definition¶
Applies a gamma correction to the image.
correct_gamma(self, contrast: int, brightness: int, gamma: float) -> None
Parameters
contrastintin Contrast coefficient, from -255 to 255, to be applied to the image.brightnessintin Brightness coefficient, from -255 to 255, to be applid to the image.gammafloatin Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Exceptions
An error has occurred during Face Library execution.
void correctGamma(int contrast, int brightness, double gamma)
Parameters
contrastintin Contrast coefficient, from -255 to 255, to be applied to the image.brightnessintin Brightness coefficient, from -255 to 255, to be applid to the image.gammadoublein Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Exceptions
An error has occurred during Face Library execution.
public void CorrectGamma(int contrast, int brightness, float gamma)
Parameters
contrastintin Contrast coefficient, from -255 to 255, to be applied to the image.brightnessintin Brightness coefficient, from -255 to 255, to be applid to the image.gammafloatin Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Exceptions
An error has occurred during Face Library execution.
public void correctGamma(int contrast, int brightness, float gamma) throws FaceException
Parameters
contrastintin Contrast coefficient, from -255 to 255, to be applied to the image.brightnessintin Brightness coefficient, from -255 to 255, to be applid to the image.gammafloatin Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Exceptions
An error has occurred during Face Library execution.
public func correctGamma(contrast: Int32, brightness: Int32, gamma: Float) throws
Parameters
contrastInt32in Contrast coefficient, from -255 to 255, to be applied to the image.brightnessInt32in Brightness coefficient, from -255 to 255, to be applid to the image.gammaFloatin Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Exceptions
An error has occurred during Face Library execution.
int id3FaceImage_CorrectGamma (
ID3_FACE_IMAGE hImage,
int contrast,
int brightness,
float gamma)
Parameters
hImageID3_FACE_IMAGEin Handle to the Image object.contrastintin Contrast coefficient, from -255 to 255, to be applied to the image.brightnessintin Brightness coefficient, from -255 to 255, to be applid to the image.gammafloatin Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Returns