ilastik / ilastik4ij

ImageJ plugins to run ilastik workflows
MIT License
22 stars 17 forks source link

Fix macro recording in PixelClassification/ObjectClassification/Tracking #47

Closed wolny closed 4 years ago

wolny commented 4 years ago

Using DisplayUtils with 'Segmentation' as an output type triggers another command which applies the LUT on the output. For some reason this prevents the macro to record the parameters of the command correctly. Skipping the LUT command fixes the issue.

WARN: this will impact PixelClassification/ObjectClassification/Tracking, i.e. Glatsbey LUT won't be applied to the output implicitly and it up to the end user to apply the LUT.

Fixes https://github.com/ilastik/ilastik4ij/issues/46 Fixes https://github.com/ilastik/ilastik4ij/issues/45

k-dominik commented 4 years ago

Some more explanation for the root-cause (thx to @imagejan): https://forum.image.sc/t/scriptparameters-as-arguments-in-a-jython-plugin/30082/5?u=k-dominik