I have issues with my macro. To reproduce the problem, I put together a very simple macro which gives me different results.
The macro (given; path needs to be adapted) loads an image (given), applies a gamma correction with value 0.3 and saves the result image. It opens the given image again, applies a gamma correction with value 0.7 and saves the result image.
If I run the macro from the macro editor, I get two different result images (as expected). If I execute it via commandline like this:
/Applications/_MyApplications/Fiji.app/Contents/MacOS/ImageJ-macosx --headless --console -macro test_gamma.ijm
the result images are exactly the same. They seem to ignore the given values and use some default instead? Why is that? Is there any way to prevent it? I’m not sure whether this behaiour is specific to the gamma-function but I’ve tested other calls which where fine…
I will be happy to get an explanation and even happier to get a solution…