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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more