pub enum AlgebraOp {
Add,
Subtract,
Multiply,
Divide,
Min,
Max,
Sqrt,
Abs,
Power(f32),
Clamp {
min: f32,
max: f32,
},
Normalize {
src_min: f32,
src_max: f32,
dst_min: f32,
dst_max: f32,
},
}Expand description
Element-wise raster algebra operation.
Variants§
Add
A + B
Subtract
A - B
Multiply
A * B
Divide
A / B (outputs nodata when |B| < 1e-10)
Min
min(A, B)
Max
max(A, B)
Sqrt
sqrt(max(0, A))
Abs
|A|
Power(f32)
A ^ exp
Clamp
clamp(A, min, max)
Normalize
Linear stretch: maps [src_min, src_max] → [dst_min, dst_max]
Trait Implementations§
impl StructuralPartialEq for AlgebraOp
Auto Trait Implementations§
impl Freeze for AlgebraOp
impl RefUnwindSafe for AlgebraOp
impl Send for AlgebraOp
impl Sync for AlgebraOp
impl Unpin for AlgebraOp
impl UnsafeUnpin for AlgebraOp
impl UnwindSafe for AlgebraOp
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