histogram equalization transformation function
5 views (last 30 days)
Show older comments
Suppose that a given 3-bit image(L=8) of size 64*64 pixels (M*N=4096) has the intensity distribution shown as below. How to obtain histogram equalization transformation function and then compute the equalized histogram of the image?
Rk nk
0 800
1 520
2 970
3 660
4 330
5 450
6 260
7 106
Answers (1)
Image Analyst
on 9 Dec 2018
Call histeq() followed by imhist().
2 Comments
Image Analyst
on 9 Dec 2018
Why without built-in functions???
Why would you want to compute the histogram, then the cdf, then invert it, and use intlut() when you can just do it in one line of code?
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!