Table of Contents

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

T

The numeric type for calculations.

TData

The data type being augmented.

Inherited Members

Properties

SupportsBoundingBoxes

Gets whether this augmentation supports bounding box transformation.

bool SupportsBoundingBoxes { get; }

Property Value

bool

SupportsKeypoints

Gets whether this augmentation supports keypoint transformation.

bool SupportsKeypoints { get; }

Property Value

bool

SupportsMasks

Gets whether this augmentation supports segmentation mask transformation.

bool SupportsMasks { get; }

Property Value

bool

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

sample AugmentedSample<T, TData>

The augmented sample containing data and targets.

context AugmentationContext<T>

The augmentation context.

Returns

AugmentedSample<T, TData>

The augmented sample with transformed targets.