CopyPaste<T>
Models & Types · AiDotNet.Augmentation.Image
Copy-Paste augmentation (Ghiasi et al., 2020) - copies random regions from a source image and pastes them onto the target image.
Inheritance: AugmentationBase<T, ImageTensor<T>> → ImageAugmenterBase<T> → CopyPaste<T>
Constructors
| Constructor | Summary |
|---|---|
CopyPaste(int minPatches, int maxPatches, double minPatchScale, double maxPatchScale, double probability) |
Properties
| Property | Summary |
|---|---|
double MaxPatchScale { get; } |
|
double MinPatchScale { get; } |
|
int MaxPatches { get; } |
|
int MinPatches { get; } |
Methods
| Method | Summary |
|---|---|
IDictionary<string, object> GetParameters() |
|
ImageTensor<T> ApplyCopyPaste(ImageTensor<T> target, ImageTensor<T> source, AugmentationContext<T> context) |
Copies patches from source image and pastes onto target. |