pub enum ResamplingMethod {
Nearest,
Bilinear,
Bicubic,
Lanczos,
}Expand description
Resampling methods
Variants§
Nearest
Nearest neighbor - fastest, preserves exact values
Best for: Categorical data, classification maps Pros: Very fast, no new values introduced Cons: Blocky appearance when upsampling
Bilinear
Bilinear interpolation - smooth, moderate quality
Best for: Continuous data, DEMs, temperature maps Pros: Smooth results, reasonably fast Cons: Some blurring, not ideal for downsampling
Bicubic
Bicubic interpolation - high quality, smoother than bilinear
Best for: High-quality imagery, DEMs requiring smoothness Pros: Very smooth, better edge preservation than bilinear Cons: Slower, can introduce slight ringing artifacts
Lanczos
Lanczos resampling - highest quality, most expensive
Best for: High-quality imagery, when quality matters most Pros: Excellent quality, sharp edges Cons: Slowest, can introduce ringing near sharp edges
Implementations§
Trait Implementations§
Source§impl Clone for ResamplingMethod
impl Clone for ResamplingMethod
Source§fn clone(&self) -> ResamplingMethod
fn clone(&self) -> ResamplingMethod
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ResamplingMethod
Source§impl Debug for ResamplingMethod
impl Debug for ResamplingMethod
Source§impl Default for ResamplingMethod
impl Default for ResamplingMethod
Source§fn default() -> ResamplingMethod
fn default() -> ResamplingMethod
impl Eq for ResamplingMethod
Source§impl Hash for ResamplingMethod
impl Hash for ResamplingMethod
Source§impl PartialEq for ResamplingMethod
impl PartialEq for ResamplingMethod
impl StructuralPartialEq for ResamplingMethod
Auto Trait Implementations§
impl Freeze for ResamplingMethod
impl RefUnwindSafe for ResamplingMethod
impl Send for ResamplingMethod
impl Sync for ResamplingMethod
impl Unpin for ResamplingMethod
impl UnsafeUnpin for ResamplingMethod
impl UnwindSafe for ResamplingMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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