Enum ndarray_ndimage::BorderMode
source · pub enum BorderMode<T> {
Constant(T),
Nearest,
Mirror,
Reflect,
Wrap,
}Expand description
Method that will be used to determines how the input array is extended beyond its boundaries.
Variants
Constant(T)
The input is extended by filling all values beyond the edge with the same constant value,
[1, 2, 3] -> [T, T, 1, 2, 3, T, T]
Nearest
The input is extended by replicating the last pixel.
[1, 2, 3] -> [1, 1, 1, 2, 3, 3, 3]
Mirror
The input is extended by reflecting about the center of the last pixel.
[1, 2, 3] -> [3, 2, 1, 2, 3, 2, 1]
Reflect
The input is extended by reflecting about the edge of the last pixel.
[1, 2, 3] -> [2, 1, 1, 2, 3, 3, 2]
Wrap
The input is extended by wrapping around to the opposite edge.
[1, 2, 3] -> [2, 3, 1, 2, 3, 1, 2]
Trait Implementations
sourceimpl<T: Clone> Clone for BorderMode<T>
impl<T: Clone> Clone for BorderMode<T>
sourcefn clone(&self) -> BorderMode<T>
fn clone(&self) -> BorderMode<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<T: Debug> Debug for BorderMode<T>
impl<T: Debug> Debug for BorderMode<T>
sourceimpl<T: PartialEq> PartialEq<BorderMode<T>> for BorderMode<T>
impl<T: PartialEq> PartialEq<BorderMode<T>> for BorderMode<T>
sourcefn eq(&self, other: &BorderMode<T>) -> bool
fn eq(&self, other: &BorderMode<T>) -> bool
impl<T: Copy> Copy for BorderMode<T>
impl<T> StructuralPartialEq for BorderMode<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for BorderMode<T>where
T: RefUnwindSafe,
impl<T> Send for BorderMode<T>where
T: Send,
impl<T> Sync for BorderMode<T>where
T: Sync,
impl<T> Unpin for BorderMode<T>where
T: Unpin,
impl<T> UnwindSafe for BorderMode<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more