pub struct ImageAugmenter { /* private fields */ }Expand description
Image augmenter for data augmentation
Implementations§
Source§impl ImageAugmenter
impl ImageAugmenter
Sourcepub fn with_rotation_range(self, range: (Float, Float)) -> Self
pub fn with_rotation_range(self, range: (Float, Float)) -> Self
Set rotation range in degrees
Sourcepub fn with_zoom_range(self, range: (Float, Float)) -> Self
pub fn with_zoom_range(self, range: (Float, Float)) -> Self
Set zoom range as factors
Sourcepub fn with_width_shift_range(self, range: Float) -> Self
pub fn with_width_shift_range(self, range: Float) -> Self
Set width shift range as fraction
Sourcepub fn with_height_shift_range(self, range: Float) -> Self
pub fn with_height_shift_range(self, range: Float) -> Self
Set height shift range as fraction
Sourcepub fn with_horizontal_flip(self, enabled: bool) -> Self
pub fn with_horizontal_flip(self, enabled: bool) -> Self
Enable horizontal flipping
Sourcepub fn with_vertical_flip(self, enabled: bool) -> Self
pub fn with_vertical_flip(self, enabled: bool) -> Self
Enable vertical flipping
Sourcepub fn with_brightness_range(self, range: (Float, Float)) -> Self
pub fn with_brightness_range(self, range: (Float, Float)) -> Self
Set brightness adjustment range
Sourcepub fn with_random_seed(self, seed: u64) -> Self
pub fn with_random_seed(self, seed: u64) -> Self
Set random seed for reproducibility
Trait Implementations§
Source§impl Clone for ImageAugmenter
impl Clone for ImageAugmenter
Source§fn clone(&self) -> ImageAugmenter
fn clone(&self) -> ImageAugmenter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageAugmenter
impl Debug for ImageAugmenter
Auto Trait Implementations§
impl Freeze for ImageAugmenter
impl RefUnwindSafe for ImageAugmenter
impl Send for ImageAugmenter
impl Sync for ImageAugmenter
impl Unpin for ImageAugmenter
impl UnwindSafe for ImageAugmenter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more