pub trait ImageFilterFunction {
// Required methods
fn radius(&self) -> f64;
fn calc_weight(&self, x: f64) -> f64;
}Expand description
Trait for image filter shape functions.
Port of C++ template duck-typing for filter functions with
radius() and calc_weight(x) methods.
Required Methods§
Sourcefn calc_weight(&self, x: f64) -> f64
fn calc_weight(&self, x: f64) -> f64
Calculate the filter weight at distance x from center.