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)
?