pub fn normalize(photon_image: &mut PhotonImage)Expand description
Normalizes an image by remapping its range of pixels values. Only RGB channels are processed and each channel is stretched to [0, 255] range independently. This process is also known as contrast stretching.
§Arguments
photon_image- A PhotonImage that contains a view into the image.
§Example
// For example, to turn an image of type `PhotonImage` into a normalized image:
use photon_rs::effects::normalize;
use photon_rs::native::open_image;
let mut img = open_image("img.jpg").expect("File should open");
normalize(&mut img);