pub enum SlopeAlgorithm {
Horn,
ZevenbergenThorne,
EvansYoung,
MaximumDownhill,
}Expand description
Algorithm for computing slope and aspect gradients
Variants§
Horn
Horn (1981): 3rd-order finite difference with 2x weighting on cardinal neighbors. Most robust against noise. This is the GDAL default.
ZevenbergenThorne
Zevenbergen & Thorne (1987): 2nd-order finite difference using only 4 cardinal neighbors. Better for smooth, mathematically defined surfaces.
EvansYoung
Evans-Young: Fits a quadratic polynomial to the 3x3 window. Theoretically optimal for regular grids.
MaximumDownhill
Maximum downhill slope: steepest descent among all 8 neighbors. Useful for hydrological analysis (D-infinity style).
Trait Implementations§
Source§impl Clone for SlopeAlgorithm
impl Clone for SlopeAlgorithm
Source§fn clone(&self) -> SlopeAlgorithm
fn clone(&self) -> SlopeAlgorithm
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 SlopeAlgorithm
impl Debug for SlopeAlgorithm
Source§impl Default for SlopeAlgorithm
impl Default for SlopeAlgorithm
Source§fn default() -> SlopeAlgorithm
fn default() -> SlopeAlgorithm
Returns the “default value” for a type. Read more
Source§impl PartialEq for SlopeAlgorithm
impl PartialEq for SlopeAlgorithm
impl Copy for SlopeAlgorithm
impl Eq for SlopeAlgorithm
impl StructuralPartialEq for SlopeAlgorithm
Auto Trait Implementations§
impl Freeze for SlopeAlgorithm
impl RefUnwindSafe for SlopeAlgorithm
impl Send for SlopeAlgorithm
impl Sync for SlopeAlgorithm
impl Unpin for SlopeAlgorithm
impl UnsafeUnpin for SlopeAlgorithm
impl UnwindSafe for SlopeAlgorithm
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