Trait dssim_core::Downsample[][src]

pub trait Downsample {
    type Output;
    fn downsample(&self) -> Option<Self::Output>;
}

You can customize how images are downsampled

Multi-scale DSSIM needs to scale images down. This is it. It's supposed to return the same type of image, but half the size.

There is a default implementation that just averages 4 neighboring pixels.

Associated Types

Loading content...

Required methods

fn downsample(&self) -> Option<Self::Output>[src]

Loading content...

Implementations on Foreign Types

impl<T> Downsample for ImgVec<T> where
    T: Average4 + Copy + Sync + Send
[src]

type Output = ImgVec<T>

impl<'a, T> Downsample for ImgRef<'a, T> where
    T: Average4 + Copy + Sync + Send
[src]

type Output = ImgVec<T>

Loading content...

Implementors

Loading content...