HE in image processing
1 view (last 30 days)
Show older comments
Hello, I reading image processing book , in Histogram Equalization we use continuous PDf and PDF is suitable for continuous variable. But in Digital image processing we have discrete number. for example 0,1,2 ... 255 Why first we use continuous PDf formula and use integration ? Thanks
0 Comments
Answers (1)
Image Analyst
on 1 Mar 2016
In theory, if you have a continuous PDF (because you have continuous gray levels) you can get a perfectly flat histogram after equalization. In practice, you can't and it just moves the bins around so that the bins have the same height as originally (unless you do something to reduce that effect such as adding noise or sorting) and produces a crummy image. I attach some demos for you to run that do the standard method, the Mathworks method (which is better), and my method, which is nearly perfect. My method gives a perfectly flat histogram except in the case where the number of pixels is not a multiple of the number of bins, and in that case all bins are flat except one.
2 Comments
Image Analyst
on 1 Mar 2016
Dani's "Answer" moved here:
Thank you for your reply, But in continuous space,The probability in one point(for exmaple: 127 or 196 or ...) is zero. Whereas in digital image processing , we have probability in one point. For example we have 16 intensity from 255. and our probability is 16/255 and in continuous probability we don't have probability in one point.
Image Analyst
on 1 Mar 2016
The probability (area under the PDF curve) is zero, but the probability density is not. And it's the probability density function that is integrated to give the cumulative distribution function which is then used as a look up table/function to give the transformed output value.
See Also
Categories
Find more on Histograms in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!