Suppose that you have a 128×128 square pixel image with an 8
gray level intensity range, within which the lighter intensity levels predominate
as shown in the table below. A) Sketch the
histogram (number of pixels vs gray level) to describe this distribution.
B) How many pixels/gray levels would there be in an equalized version
of this histogram? C) Apply the discrete transformation described
above and plot the new (equalized) histogram. (How well does the histogram approximate
a uniform distribution of intensity values?)
-------------------------------
| Gray Level | Number of Pixels |
|------------+------------------|
| 0 | 34 |
|------------+------------------|
| 1 | 50 |
|------------+------------------|
| 2 | 500 |
|------------+------------------|
| 3 | 1500 |
|------------+------------------|
| 4 | 2700 |
|------------+------------------|
| 5 | 4500 |
|------------+------------------|
| 6 | 4000 |
|------------+------------------|
| 7 | 3100 |
-------------------------------