pub enum AugOp {
Show 14 variants
Identity,
AutoContrast,
Equalize,
Rotate,
Solarize,
Color,
Posterize,
Contrast,
Brightness,
Sharpness,
ShearX,
ShearY,
TranslateX,
TranslateY,
}Expand description
The 14 canonical RandAugment operations.
Variants§
Identity
Pass the image through unchanged.
AutoContrast
Stretch per-channel histogram to [0, 1].
Equalize
Histogram equalization per channel.
Rotate
Rotate by ±30° scaled by magnitude.
Solarize
Invert pixels above a magnitude-derived threshold.
Color
Blend between grayscale and original (saturation adjust).
Posterize
Reduce effective bit depth.
Contrast
Blend between channel-mean image and original.
Brightness
Blend between black and original.
Sharpness
Sharpen via unsharp masking.
ShearX
Shear horizontally.
ShearY
Shear vertically.
TranslateX
Translate horizontally.
TranslateY
Translate vertically.
Trait Implementations§
impl StructuralPartialEq for AugOp
Auto Trait Implementations§
impl Freeze for AugOp
impl RefUnwindSafe for AugOp
impl Send for AugOp
impl Sync for AugOp
impl Unpin for AugOp
impl UnsafeUnpin for AugOp
impl UnwindSafe for AugOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more