You are here: Start » AVL.NET » AVL.CorrectGamma(AvlNet.ImagePointTransformsState, AvlNet.Image, AvlNet.Region, float, AvlNet.Image)
AVL.CorrectGamma(AvlNet.ImagePointTransformsState, AvlNet.Image, AvlNet.Region, float, AvlNet.Image)
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void CorrectGamma( ref AvlNet.ImagePointTransformsState ioState, AvlNet.Image inImage, AvlNet.Region inRoi, float inValue, out AvlNet.Image outImage )
Parameters
- ioState
- Type: AvlNet.ImagePointTransformsState
- inImage
- Type: AvlNet.Image
- inRoi
- Type: AvlNet.Region
- inValue
- Type: System.Single
- outImage
- Type: AvlNet.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
![]() |
![]() |
![]() |
The CorrectGamma performed on the sample image with inValue = 2.0 (left image) and inValue = 0.5 (right image).
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Hardware acceleration settings may be manipulated with Settings class.



