Mosaic<T>
Models & Types · AiDotNet.Augmentation.Image
YOLO-style 4-image mosaic augmentation (Bochkovskiy et al., 2020). Combines 4 images into a single image with a random center point.
Inheritance: AugmentationBase<T, ImageTensor<T>> → ImageAugmenterBase<T> → Mosaic<T>
Constructors
| Constructor | Summary |
|---|---|
Mosaic(int outputHeight, int outputWidth, double minCenterRatio, double maxCenterRatio, double probability) |
Properties
| Property | Summary |
|---|---|
double MaxCenterRatio { get; } |
|
double MinCenterRatio { get; } |
|
int OutputHeight { get; } |
|
int OutputWidth { get; } |
Methods
| Method | Summary |
|---|---|
IDictionary<string, object> GetParameters() |
|
ImageTensor<T> ApplyMosaic(ImageTensor<T> image1, ImageTensor<T> image2, ImageTensor<T> image3, ImageTensor<T> image4, AugmentationContext<T> context) |
Applies 4-image mosaic. |