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
TThe numeric type for calculations.
- Inheritance
-
AugmentationBase<T, ImageTensor<T>[]>SpatialVideoAugmenterBase<T>
- Implements
-
IAugmentation<T, ImageTensor<T>[]>
- Derived
- Inherited Members
Constructors
SpatialVideoAugmenterBase(double, double)
Initializes a new spatial video augmentation.
protected SpatialVideoAugmenterBase(double probability = 1, double frameRate = 30)
Parameters
probabilitydoubleThe probability of applying this augmentation.
frameRatedoubleThe 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
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.