FingerImage.correctGamma Method¶
Module: FingerImage
Definition¶
Applies a gamma correction to the image.
correct_gamma(self, contrast: int, brightness: int, gamma: float) -> None
Parameters
contrast
intin Contrast coefficient, from -255 to 255, to be applied to the image.brightness
intin Brightness coefficient, from -255 to 255, to be applid to the image.gamma
floatin Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Exceptions
An error has occurred during Finger Library execution.
void correctGamma(int contrast, int brightness, double gamma)
Parameters
contrast
intin Contrast coefficient, from -255 to 255, to be applied to the image.brightness
intin Brightness coefficient, from -255 to 255, to be applid to the image.gamma
doublein Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Exceptions
An error has occurred during Finger Library execution.
public void CorrectGamma(int contrast, int brightness, float gamma)
Parameters
contrast
intin Contrast coefficient, from -255 to 255, to be applied to the image.brightness
intin Brightness coefficient, from -255 to 255, to be applid to the image.gamma
floatin Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Exceptions
An error has occurred during Finger Library execution.
public void correctGamma(int contrast, int brightness, float gamma) throws FingerException
Parameters
contrast
intin Contrast coefficient, from -255 to 255, to be applied to the image.brightness
intin Brightness coefficient, from -255 to 255, to be applid to the image.gamma
floatin Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Exceptions
An error has occurred during Finger Library execution.
public func correctGamma(contrast: Int32, brightness: Int32, gamma: Float) throws
Parameters
contrast
Int32in Contrast coefficient, from -255 to 255, to be applied to the image.brightness
Int32in Brightness coefficient, from -255 to 255, to be applid to the image.gamma
Floatin Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Exceptions
An error has occurred during Finger Library execution.
int id3FingerImage_CorrectGamma (
ID3_FINGER_IMAGE hFingerImage,
int contrast,
int brightness,
float gamma)
Parameters
hFingerImage
ID3_FINGER_IMAGEin Handle to the FingerImage object.contrast
intin Contrast coefficient, from -255 to 255, to be applied to the image.brightness
intin Brightness coefficient, from -255 to 255, to be applid to the image.gamma
floatin Gamma coefficient, from 0.25 to 2.50, to be applied to the image.
Returns