Trait dssim::ToRGBAPLU

source ·
pub trait ToRGBAPLU {
    // Required methods
    fn to_rgbaplu(&self) -> Vec<RGBA<f32>>;
    fn to_rgblu(&self) -> Vec<RGB<f32>>;
}
Expand description

RGBA Premultiplied Linear-light Unit scale

Convenience function .to_rgbaplu() to convert RGBA bitmaps to a format useful for DSSIM.

Required Methods§

source

fn to_rgbaplu(&self) -> Vec<RGBA<f32>>

Convert with alpha channel preserved

source

fn to_rgblu(&self) -> Vec<RGB<f32>>

Discard alpha channel, if any

Implementations on Foreign Types§

source§

impl<P> ToRGBAPLU for [P]
where P: GammaPixel<Output = RGBA<f32>>,

source§

fn to_rgbaplu(&self) -> Vec<RGBA<f32>>

source§

fn to_rgblu(&self) -> Vec<RGB<f32>>

Implementors§