Interface ISpatialAugmentation<T, TData>
- Namespace
- AiDotNet.Augmentation
- Assembly
- AiDotNet.dll
Interface for augmentations that can transform spatial targets (bounding boxes, keypoints, segmentation masks).
public interface ISpatialAugmentation<T, TData> : IAugmentation<T, TData>
Type Parameters
TThe numeric type for calculations.
TDataThe data type being augmented.
- Inherited Members
Properties
SupportsBoundingBoxes
Gets whether this augmentation supports bounding box transformation.
bool SupportsBoundingBoxes { get; }
Property Value
SupportsKeypoints
Gets whether this augmentation supports keypoint transformation.
bool SupportsKeypoints { get; }
Property Value
SupportsMasks
Gets whether this augmentation supports segmentation mask transformation.
bool SupportsMasks { get; }
Property Value
Methods
ApplyWithTargets(AugmentedSample<T, TData>, AugmentationContext<T>?)
Applies the augmentation and transforms all spatial targets.
AugmentedSample<T, TData> ApplyWithTargets(AugmentedSample<T, TData> sample, AugmentationContext<T>? context = null)
Parameters
sampleAugmentedSample<T, TData>The augmented sample containing data and targets.
contextAugmentationContext<T>The augmentation context.
Returns
- AugmentedSample<T, TData>
The augmented sample with transformed targets.