Gamma correction filter.

The filter performs gamma correction of specified image in RGB color space. Each pixels' value is converted using the Vout=Ving equation, where g is gamma value.

The filter accepts 8 bpp grayscale and 24 bpp color images for processing.

Sample usage:

// create filter GammaCorrection filter = new GammaCorrection( 0.5 ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

Inheritance: BaseInPlacePartialFilter
Example #1
0
 private void SetFilter()
 {
     ImageType = ImageTypes.Rgb24bpp;
     Af.GammaCorrection newFilter = new Af.GammaCorrection();
     newFilter.Gamma = Remap(gamma, 0.1, 5.0);
     imageFilter     = newFilter;
 }