Hi,
this is a new version of the module I published in
http://pixinsight.com/forum/index.php?topic=3114.0. As before, this module is available as source only, and has been tested on Fedora14-x64 only, but I don't expect any issues with compiling it on different platforms. It modifies an image by recomputing its gradients. For the purpose of HDR compression, we remove or reduce any large gradients. While Carlo's HDR module appears to be optimized for natural images, the approach used by this module is geared towards astromical images, preserving as much detail as possible (even if this results in an unnatural look). I will show some examples in later posts.
This version I would consider a beta version. Funtionality is largely complete and stable. Missing bits involve progress and cancel, and maybe some error handling.
Changes compared to the previous version:
- I switched from a sparse linear system solver to an FFT based solver. This is much faster than the previous version (19 seconds for a 10 MPixel image on a slow virtual Linux machine). It is also more accurate than popular alternatives such as multigrid methods.
- The current version uses the FFTW library (
http://www.fftw.org/), which comes with Fedora 14, is available for all relevant platforms, and fast. Unfortunately, its license does not allow for distribution with commercial products. I will switch to a PI based version as soon as the necessary functions are available with similar speed within PI.
- This version is fast enough to allow for a realtime preview (!), so you can easily experiment with the sliders.
- The code has largely been ported to PCL based data structures. That avoids a number of copies, and the corresponding waste of memory. We also no longer need the GMM+ library.
- I have implemented a special mode that tries to preserve the colors of the stretched images ("Preserve Color" checkbox), by keeping the relative proportions of R:G:B unchanged.
I would love to hear if you find the module useful.
Georg