logo
pub trait Average4 {
    fn average4(a: Self, b: Self, c: Self, d: Self) -> Self;
}
Expand description

Component-wise averaging of pixel values used by Downsample to support arbitrary pixel types

Used to naively resample 4 high-res pixels into one low-res pixel

Required methods

Implementations on Foreign Types

Implementors