Hi to all,
I am new to this forum. My name is Roberto and I am an electronic engineer from Italy.
Well, let go to the question.
I am writing an image processing application focused on astro pictures. The pecularity of these kind of images is that they come out from calibrating tools with a very narrow histogram that needs to be stretched.
I have implemented a common algorithm for histogram stretching that foresees a linear stretching plus a gamma correction based on inputs given by the users.
Basically, the inputs are: Black/White Red/Green/Blue Thresholds (0-255) and gamma (0.01-6.99).
As you can see I am working in a 24bpp scenario (8 per channel).
I am making some unit tests of my program versus PSCS5 and I am noticing that my tool produces a very annoying posterizing. Basically, I took an image and I applied both on my tool and PSCS5 (in 24bpp mode):
- 8 for black on all channels
- 38 for white on all channels
- 1.02 for gray on all channels
My tool produces an output histograms with several peeks while PSCS5 spread the information in a little better way so that posterizing is not present. Now my question is: after the linear and logarithmic stretching is there some other algorithm that I need to apply as PSCS5 does? I cannot find anything around the net.
Thanks a lot.
Regards, Roberto