Hi Paolo,
I'm committing a new version of my plugin, with a new DESATURATION filter (
it was not requested, but I saw that there wasn't a easy way to convert a
mesh to gray scale, so I've done it quickly...).
There is also a new version of the Equalization filter. It works on
lightness (i.e on the image as if it was in gray scale). this works
correctly and do wath I find here
Histogram equalization - Wikipedia, the free
encyclopedia<http://en.wikipedia.org/wiki/Histogram_equalization>
the result is similar to what gimp does on a gray scaled image. so
everything is ok.
Filter works on RGB channels too. I don't have any doc about how to compute
an histogram of colors respect to all the 3 components, so I immagined that
it was simply
to apply the equalization to every channel. I done this and it works (and is
a really pretty effect to me!), but is not what gimp does.
Equalization code is right, I simply don't know wath values putting in to
achieve the gimp's effect.
I'm looking for some doc that shows how to work on colors and not on gray
scaled images. Every hint is welcome!
cheers.
|