[][src]Function ndarray_vision::core::image::normalise_pixel_value

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

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