- “histeq” function works only on grayscale image. If the image is RGB (colored), it needs to be converted to grayscale.
- Use “imadjust” function is used to map the intensity values of the image from the range [13, 242] to the full range [0, 255].
- “[13/255, 242/255]” specifies the input range in normalized form (since image intensity values are typically in the range 0 to 1 for processing).
- “[]” specifies that the full output range [0, 1] should be used.
- “histeq” function is used to perform histogram equalization on the intensity-adjusted image.
- This enhances the contrast of the image by spreading out the most frequent intensity values.


