Loading...
Implement a function to normalize image pixel values to the range [0, 1]. Normalization is a crucial preprocessing step in Computer Vision that scales the intensity values of an image to a common range, which helps in reducing the impact of illumination changes and improving the robustness of subsequent processing tasks. The normalization process involves shifting and scaling the original pixel values I using the minimum Imin and maximum Imax values in the image. Here are the steps to achieve this:
normalize([[0, 128, 255]])
[[0.0, 0.502, 1.0]]
(128-0)/(255-0) ≈ 0.502