ComputerScience/ImageProcessing
영상처리 - 10. Histogram Equealization
jsdysw
2021. 11. 11. 17:30
728x90

Histogram Equealization은 원본 이미지를 cumulative histogram으로 바꾼다음 normalization을 거쳐서 uniformly distributed histogram이 되도록 하는 것을 말한다.

첫번재로 히스토그램을 만든다.

그 다음 누적분포로 히스토그램을 변환한다.

sum * 최대 intensity(7) / numOfPixels(16)하여 normalize한다.
반올림하여 새로운 new intensity를 구하면 다음과 같다.
0 -> 0,
1 -> 1,
2 -> 2,
3 -> 5,
4 -> 7,
5 -> 7,
6 -> 7,
7 -> 7,


이 원본이미지의 intensity를 위의 lookup table을 보고 변환한다.
이렇게 하면 이미지의 histogram을 넓게 분포시킬 수 있다.
정리하면 다음과 같다.

728x90
반응형