You are here: Start » AVL.NET » AVL.CorrectGamma
Performs gamma correction.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void CorrectGamma ( AvlNet.Image inImage, float inValue, AvlNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inValue | float | <0.01f, 8.0f> | 2.0f | Gamma coefficient, where 1.0 is neutral. Default value: 2.0f. | |
outImage | AvlNet.Image | Output image. |
Description
The gamma correction is a standard nonlinear transformation of pixel brightness that was developed as a tool for the compensation of CRT display input-output characteristic. The operation scales brightness of each inImage pixel to the 0.0 - 1.0 range, exponentiates it to the power of inValue, and then scales the result back to the pixel values range.
Examples
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Hardware acceleration settings may be manipulated with Settings class.