BBoxSafeRandomCrop<T>
Models & Types · AiDotNet.Augmentation.Image
Random crop that ensures bounding boxes remain valid after cropping.
Inheritance: AugmentationBase<T, ImageTensor<T>> → SpatialAugmentationBase<T, ImageTensor<T>> → SpatialImageAugmenterBase<T> → BBoxSafeRandomCrop<T>
Constructors
| Constructor | Summary |
|---|---|
BBoxSafeRandomCrop(double minCropScale, int maxAttempts, double minBBoxAreaRatio, double probability) |
Properties
| Property | Summary |
|---|---|
double MinBBoxAreaRatio { get; } |
|
double MinCropScale { get; } |
|
int MaxAttempts { get; } |
Methods
| Method | Summary |
|---|---|
IDictionary<string, object> GetParameters() |