Difference between contrast stretching and histogram equalization

后端 未结 6 485
悲&欢浪女
悲&欢浪女 2020-12-23 15:04

I would like to know the difference between contrast stretching and histogram equalization.

I have tried both using OpenCV and observed the results

6条回答
  •  心在旅途
    2020-12-23 15:57

    I came across the following points after some reading.

    Contrast stretching is all about increasing the difference between the maximum intensity value in an image and the minimum one. All the rest of the intensity values are spread out between this range.

    Histogram equalization is about modifying the intensity values of all the pixels in the image such that the histogram is "flattened" (in reality, the histogram can't be exactly flattened, there would be some peaks and some valleys, but that's a practical problem).

    In contrast stretching, there exists a one-to-one relationship of the intensity values between the source image and the target image i.e., the original image can be restored from the contrast-stretched image.

    However, once histogram equalization is performed, there is no way of getting back the original image.

提交回复
热议问题