GammaCorrection<T>

Models & Types · AiDotNet.Augmentation.Image

Applies gamma correction to adjust image brightness non-linearly.

Inheritance: AugmentationBase<T, ImageTensor<T>> → ImageAugmenterBase<T> → GammaCorrection<T>

For Beginners

Unlike brightness which adds/multiplies uniformly, gamma correction affects dark and bright areas differently, giving more natural-looking brightness adjustments.

How It Works

Gamma correction raises each pixel value to the power of (1/gamma). Gamma > 1 brightens the image (especially dark areas), while gamma < 1 darkens it.

Constructors

Constructor Summary
GammaCorrection(double minGamma, double maxGamma, double probability)

Properties

Property Summary
double MaxGamma { get; }
double MinGamma { get; }

Methods

Method Summary
IDictionary<string, object> GetParameters()