Trait dssim_core::Downsample
source · [−]pub trait Downsample {
type Output;
fn downsample(&self) -> Option<Self::Output>;
}Expand description
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.
