Getting pixels of image as grayscale 0.0 to 1.0

Oh, I forgot about the reference: (*it as f64) / 255_f64

(you can also instead add a .copied() adaptor right after the .iter())

1 Like