You are here: Start » FIL.NET » Function Reference » Image » Image Point Transforms » FIL.CorrectGamma

FIL.CorrectGamma

Performs gamma correction.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void CorrectGamma
(
	FilNet.Image inImage,
	float inValue,
	FilNet.Image outImage
)

Parameters

Name Type Range Default Description
inImageFilNet.ImageInput image.
inValuefloat<0.01f, 8.0f>2.0fGamma coefficient, where 1.0 is neutral. Default value: 2.0f.
outImageFilNet.ImageOutput 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.

Errors

List of possible exceptions:

Error type Description
DomainError Not supported inImage pixel format in CorrectGamma. Supported formats: Int8, UInt8, Int16, UInt16, Int32.

Function Overrides

See also