pub trait ToColorMap {
    fn to_color_map(&self) -> RgbImage;
}

Required Methods

Clamps each input pixel’s channel-values to (0., 1.) and multiplies them by 255 before converting to an Rgb8-Image. See tests/data/*_compare_rgb.png images for examples.

Implementors