Trait dssim::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
type Output
Required Methods
fn downsample(&self) -> Option<Self::Output>
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]
T: Average4 + Copy + Sync + Send,