JpegCompression<T>
Models & Types · AiDotNet.Augmentation.Image
Simulates JPEG compression artifacts by quantizing DCT coefficients.
Inheritance: AugmentationBase<T, ImageTensor<T>> → ImageAugmenterBase<T> → JpegCompression<T>
How It Works
Simulates the blocking and ringing artifacts from low-quality JPEG compression using 8x8 DCT block quantization. Lower quality values produce stronger artifacts.
Constructors
| Constructor | Summary |
|---|---|
JpegCompression(int minQuality, int maxQuality, double probability) |
Properties
| Property | Summary |
|---|---|
int MaxQuality { get; } |
|
int MinQuality { get; } |
Methods
| Method | Summary |
|---|---|
IDictionary<string, object> GetParameters() |