AugmentationPolicy<T>

Models & Types · AiDotNet.Augmentation.Image

Defines a serializable augmentation policy with named transforms and parameters.

Constructors

Constructor Summary
AugmentationPolicy()

Properties

Property Summary
List<AugmentationPolicyEntry<T>> Entries { get; }
string Name { get; set; }

Methods

Method Summary
AugmentationPolicy<T> Add(IAugmentation<T, ImageTensor<T>> augmenter, double probability) Adds a transform to the policy.
IDictionary<string, object> GetParameters() Gets all parameters as a serializable dictionary.
ImageTensor<T> Apply(ImageTensor<T> image, AugmentationContext<T> context) Applies the policy to an image.