This is how it works.
Using the image below, the histogram of the gray level is obtained.
Grayscaled image
The histogram is then normalized to obtain the PDF or Probability distribution function.Cumulative summing of the PDF will yield to the CDF or Cumulative Distribution Function
Backprojecting involves another CDF. This time it is at your own liking. A linear CDF is used for this example.
What is being done in Backprojecting is that from the CDF of the image, the pixel is traced to the desired CDF. Then the value of the pixel in the desired replaces the old value. It is like an iterated trace an replace algorithm.
So the bakprojected image is shown here.
As well as its PDF and CDF.
Histogram of Linearly Backprojected Image/. Normalizeing the Y axis, The PDF is obtained.
When the desired CDF is nonlinear, This happens:
Nonlinear Desired CDF
In Gimp, you can do this much simpler. Because the program and the GUI is Built in. Check out the Zerg Hydralisk image in the previously released Starcraft 2: Wings of Liberty. I tried to do histogram manipulation in it using Gimp.
Well, I think I'll have an 8/10 in this activity. For a long time, I was stuck at the backprojecting algorithm. Luckily, I was able to figure out how interpolation in scilab. That's where my biggest problem was.
No comments:
Post a Comment