Today I had only a pair of free hours, so I decided to take a break from IntensityPlot and do a quicky
Here is the Win32 compilation:
http://pteam.pixinsight.com/carlos/modules/GammaStretch-pxm.zipAnd the source code:
http://pteam.pixinsight.com/carlos/modules/GammaStretch-src-2009-09-23.zipAs you may imagine, this is just an implementation of the Gamma Transformation, the well known, sometimes called midtones balance. If HistogramTransform and other modules already do something quite similar, why bother? Well, the gamma function has the particularity that in most times the result has lesser constrast. I have found that in daylight pics, processed from a RAW file, this function tends to yield better results, because it is easy to increase contrast later, but not that much to decrease it without creating weird effects. Also, I wanted to use this function to perform some tests about monitor calibration
So, here it is, ready for you to test, critic, suggest, etc, etc. It has RealTime capabilities, so it will be fun to play with