Trait dssim_core::Downsample [−][src]
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]
Implementations on Foreign Types
impl<T> Downsample for ImgVec<T> where
T: Average4 + Copy + Sync + Send, [src]
T: Average4 + Copy + Sync + Send,
impl<'a, T> Downsample for ImgRef<'a, T> where
T: Average4 + Copy + Sync + Send, [src]
Loading content...T: Average4 + Copy + Sync + Send,