SamplePairing<T>
Models & Types · AiDotNet.Augmentation.Image
Sample Pairing augmentation (Inoue, 2018) - averages two images together.
Inheritance: AugmentationBase<T, ImageTensor<T>> → LabelMixingAugmentationBase<T, ImageTensor<T>> → ImageMixingAugmenterBase<T> → SamplePairing<T>
Constructors
| Constructor | Summary |
|---|---|
SamplePairing(double minWeight, double maxWeight, double probability) |
Properties
| Property | Summary |
|---|---|
double MaxWeight { get; } |
|
double MinWeight { get; } |
Methods
| Method | Summary |
|---|---|
IDictionary<string, object> GetParameters() |
|
ImageTensor<T> ApplyPairing(ImageTensor<T> image1, ImageTensor<T> image2, Vector<T> labels1, Vector<T> labels2, AugmentationContext<T> context) |
Pairs two images by weighted averaging. |