0

I'm working on a MATLAB image processing project and it wants me to "Convert the color image of the flame in to gray level and adjust the gray level according to its statistical distribution.". Actually, what I don't understand is what it means by saying "adjust the gray level according to its statistical distribution".

In addition it explains a bit about what it means: "Let's consider a discrete gray scale image x and let the total number of occurrences of gray level of i be nj, then a pixel of gray level i has the probability of occurrence

Px(i)=p(x=i)= nj/n , 0 < i < L

where L is the total number of gray levels in the image, n the resultant pixels in the image, and Px(i) the pixels histogram with i, normalized to [0,1].The cumulative distribution function(CDF) corresponding to Px is defined as

CDFx(i) = (adding from j=0 to i) Px(j)

This is the accumulated normalized histogram of the image. Next, a transformation of form y = T(x) is created to produce a new image {y}, such that its CDF will be linearized across the value range with number K which is a constant , i.e.

CDFy(i) = iK

Can anybody please help me find this transformation called T(x)?

Adriaan
  • 17,741
  • 7
  • 42
  • 75
Ali Hares
  • 31
  • 5
  • That is classic histogram equalization my friend. I'm flagging this as a duplicate. Consult the post I wrote above that explains how to do it. It also has code and results for you to see. – rayryeng Sep 02 '15 at 16:36
  • @rayryeng Thanks for flagging as duplicate! It was helpful! :) – Ali Hares Sep 02 '15 at 17:05
  • My pleasure... it's a shame you can't upvote the post! Either way, good luck! – rayryeng Sep 02 '15 at 17:07

0 Answers0