pub enum Mode {
Reflect,
Mirror,
Nearest,
Constant(f64),
Wrap,
}Expand description
How values beyond the edge of an image are supplied (SciPy’s mode).
Variants§
Reflect
Reflect about the edge, repeating the edge sample (SciPy’s default for filters).
Mirror
Reflect about the centre of the edge sample, without repeating it.
Nearest
Repeat the edge sample.
Constant(f64)
A constant value.
Wrap
Periodic extension.
Trait Implementations§
impl Copy for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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