MATLAB Answers

0

histogram equalization transformation function

Asked by pandu hanifa on 8 Dec 2018 at 12:16
Latest activity Commented on by Image Analyst
on 9 Dec 2018 at 4:14
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

  0 Comments

Sign in to comment.

1 Answer

Answer by Image Analyst
on 9 Dec 2018 at 0:41

Call histeq() followed by imhist().

  2 Comments

if equation i know how to finish it,, i want to know the code( without in-built function matlab), and if its c++ i aldy try and can,, but in matlab the code i write keep eror idk why
rk nk c sk = c/MN (L-1)sk rounded value
0 800 800 0.195 1.365 1
1 520 1320 0.322 2.254 2
2 970 2290 0.559 3.913 4
3 660 2950 0.720 5.04 5
4 330 3280 0.801 5.601 6
5 450 3730 0.911 6.377 6
6 260 3990 0.974 6.818 7
7 106 4096 1.000 7.0 7
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?

Sign in to comment.