Table of Contents

Class SpatialVideoAugmenterBase<T>

Namespace
AiDotNet.Augmentation.Video
Assembly
AiDotNet.dll

Base class for spatial video augmentations that apply image transforms to all frames.

public abstract class SpatialVideoAugmenterBase<T> : VideoAugmenterBase<T>, IAugmentation<T, ImageTensor<T>[]>

Type Parameters

T

The numeric type for calculations.

Inheritance
SpatialVideoAugmenterBase<T>
Implements
Derived
Inherited Members

Constructors

SpatialVideoAugmenterBase(double, double)

Initializes a new spatial video augmentation.

protected SpatialVideoAugmenterBase(double probability = 1, double frameRate = 30)

Parameters

probability double

The probability of applying this augmentation.

frameRate double

The frame rate of the video.

Properties

ConsistentAcrossFrames

Gets or sets whether to use consistent random parameters across all frames.

public bool ConsistentAcrossFrames { get; set; }

Property Value

bool

Remarks

Default: true

When true, the same random transformation is applied to all frames. When false, each frame gets different random parameters (rarely desired for video).

Methods

GetParameters()

Gets the parameters of this augmentation.

public override IDictionary<string, object> GetParameters()

Returns

IDictionary<string, object>

A dictionary of parameter names to values.