#[repr(u8)]pub enum MethodForResampling {
Nearest = 0,
Gaussian = 1,
Hanning = 2,
Hamming = 3,
Bilinear = 4,
Welsh = 5,
Bicubic = 6,
Lanczos2 = 7,
Lanczos3 = 8,
Lanczos4 = 9,
}
Expand description
Method used for resampling
Variants§
Nearest = 0
Use nearest neighbor method
Gaussian = 1
Use Guaussian filter
Hanning = 2
Use Hanning filter
Hamming = 3
Use Hamming filter
Bilinear = 4
Use bilinear filter
Welsh = 5
Use Welsh filter
Bicubic = 6
Use bicubic filter
Lanczos2 = 7
Use Lanczos-2 filter
Lanczos3 = 8
Use Lanczos-3 filter
Lanczos4 = 9
Use Lanczos-4 filter
Implementations§
Source§impl MethodForResampling
impl MethodForResampling
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new MethodForResampling.
Trait Implementations§
Source§impl Clone for MethodForResampling
impl Clone for MethodForResampling
Source§fn clone(&self) -> MethodForResampling
fn clone(&self) -> MethodForResampling
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 MethodForResampling
impl Debug for MethodForResampling
Source§impl Default for MethodForResampling
impl Default for MethodForResampling
Source§fn default() -> MethodForResampling
fn default() -> MethodForResampling
Returns the “default value” for a type. Read more
Source§impl PartialEq for MethodForResampling
impl PartialEq for MethodForResampling
impl Copy for MethodForResampling
impl StructuralPartialEq for MethodForResampling
Auto Trait Implementations§
impl Freeze for MethodForResampling
impl RefUnwindSafe for MethodForResampling
impl Send for MethodForResampling
impl Sync for MethodForResampling
impl Unpin for MethodForResampling
impl UnwindSafe for MethodForResampling
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