Function normalise_pixel_value

Source
pub fn normalise_pixel_value<T>(t: T) -> f64
where T: PixelBound + Num + NumCast,
Expand description

Returns a normalised pixel value or 0 if it can’t convert the types. This should never fail if your types are good.