HistogramMatching<T>

Models & Types · AiDotNet.Augmentation.Image

Matches the histogram of an image to a reference histogram or target distribution.

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

For Beginners

If you have images taken under different lighting conditions, histogram matching can make them look more similar by adjusting one image’s color distribution to match another’s.

How It Works

Histogram matching transforms pixel intensities so the output histogram matches a specified reference. This is useful for normalizing images from different sources to have similar appearance, or for style transfer by matching color distributions.

Constructors

Constructor Summary
HistogramMatching(double[][] referenceHistograms, double blendFactor, double probability) Creates a new histogram matching augmentation.

Properties

Property Summary
double BlendFactor { get; } Gets the blend factor [0, 1].
double[][] ReferenceHistograms { get; } Gets the reference histogram to match (per channel, normalized CDF).

Methods

Method Summary
IDictionary<string, object> GetParameters()