Hello all, I intent to integrate a few G'mic filters into an open source tool hosted on github that is used for post processing astrophotography images in the next version (called LuckyStackWorker). It is used for solar system images obtain using a technique called 'lucky imaging'. In particular I found Ian's noise reduction to be very effective, I'm using this filter for years already from Gimp. Also the "Equalize local histograms" filter works very well for revealing fine details when used from Gimp. Ofcourse I will clearly refer to G'mic in the about menu and use the same naming for the filters.
For the integration I use the CLI, however when executing the command, the resulting output seems to be (nearly) the same as the original input image:
gmic -v 2 -input temp_in.tif -div 65536 fx_equalize_local_histograms 75,2,4,100,8,0,16,0,50,50 -mul 65536 -output test.tif,int16
Note that the input image is a 16-bit tiff as well as the output. In order to make it work for Ians noise reduction I had to first divide and multiple by 65536. This works fine for Ians noise reduction, so I'm assuming that it will be the same for "Equalize local histograms".
I tried all kinds of different things, like change the strength value to 0.75, use a different channel (Luminance instead of Lightness) and pretty much all the other parameters, with no luck. Changing other parameters then strength does have an effect, but it is as if the most important parameter strength is ignored.
Does anybody have an idea how to make it work from the CLI? (as it does when used directly from Gimp that is).
NB: forgot to mention the version of gmic cli that I use is the latest as of now: 3.3.2
|