Histograms in the RGB, LHS and CMY Domain


We need to make a histogram. I have started writing the histogram routine. In order to diagnose a zero crossing, we need to find the RGB "zero point", i.e. the fixed point around which we increase amplitude. It should be a meaningful mode.
Here is a plot of the RGB values.

(Click for larger image.)
(Click for larger image.)
(Click for larger image.)
As you can see, the mode's of each color are at different places, but not too far apart. If we AGC in the RGB domain, we will have to take that into account.
We will use the mode's for the pseudo-zero crossings of the AGC. We will exclude the 3,000,000 points that are at 255, and the next couple of bins, e.g. bins 0, 1, 2, and 3, and bins 255, 254, 253, and 252 when looking for the mode.
In fact, when looking at the Green and Blue lines, we probably instead will find a local mode new 256/2=128 as the pseudo origin.
Next we will look at LHS and CMY domains.
For a log of the work so far, see HERE.
Send suggestions to:
Wm P. Kamp