Trait image2::filter::Filter [−][src]
pub trait Filter: Sized + Sync { fn compute_at<T: Type, C: Color, I: Image<T, C>>(
&self,
x: usize,
y: usize,
c: usize,
input: &[&I]
) -> f64; fn eval_s<T: Type, C: Color, U: Type, D: Color, I: Image<T, C>, J: Image<U, D>>(
&self,
output: &mut I,
input: &[&J]
) { ... } fn eval<T: Send + Type, C: Color, U: Type, D: Color, I: Sync + Send + Image<T, C>, J: Sync + Image<U, D>>(
&self,
output: &mut I,
input: &[&J]
) { ... } fn combine<A: Filter, F: Fn(f64, f64) -> f64>(
&self,
other: A,
f: F
) -> Combine<Self, A, F> { ... } fn and_then<F: Fn(f64) -> f64>(&self, f: F) -> AndThen<Self, F> { ... } }
Required Methods
fn compute_at<T: Type, C: Color, I: Image<T, C>>(
&self,
x: usize,
y: usize,
c: usize,
input: &[&I]
) -> f64
&self,
x: usize,
y: usize,
c: usize,
input: &[&I]
) -> f64
Provided Methods
fn eval_s<T: Type, C: Color, U: Type, D: Color, I: Image<T, C>, J: Image<U, D>>(
&self,
output: &mut I,
input: &[&J]
)
&self,
output: &mut I,
input: &[&J]
)
fn eval<T: Send + Type, C: Color, U: Type, D: Color, I: Sync + Send + Image<T, C>, J: Sync + Image<U, D>>(
&self,
output: &mut I,
input: &[&J]
)
&self,
output: &mut I,
input: &[&J]
)
fn combine<A: Filter, F: Fn(f64, f64) -> f64>(
&self,
other: A,
f: F
) -> Combine<Self, A, F>
&self,
other: A,
f: F
) -> Combine<Self, A, F>
fn and_then<F: Fn(f64) -> f64>(&self, f: F) -> AndThen<Self, F>
Implementors
impl<'a, A: Filter, F: Sync + Fn(f64) -> f64> Filter for AndThen<'a, A, F>
impl<'a, A: Filter, B: Filter, F: Sync + Fn(f64, f64) -> f64> Filter for Combine<'a, A, B, F>
impl Filter for Invert
impl Filter for Blend
impl Filter for ToGrayscale
impl Filter for ToColor
impl Filter for image2::filter::RgbaToRgb
impl Filter for image2::color::RgbaToRgb
impl Filter for Kernel
impl Filter for Add
impl Filter for Sub
impl Filter for Mul
impl Filter for Div
impl Filter for Rem
impl Filter for Transform