ijpb / MorphoLibJ

Collection of mathematical morphology methods and plugins for ImageJ
http://imagej.net/MorphoLibJ
GNU Lesser General Public License v3.0
101 stars 48 forks source link

Bug: Geodesic diameter is not exported to ROI manager in macro #49

Open NannaMJ opened 3 years ago

NannaMJ commented 3 years ago

Hi,

I have been creating a macro to analyze the intensity along regions of interest, in which I use "skeletonize" + "geodesic diameter" to select the longest path through the ROI (and then add this geodesic diameter to the ROI manager). This works well manually, but when I try to run it in my macro, the geodesic diameter (GD) selection is not added to the ROI manager...

I used the macro recorder function in FIJI to make sure that my calling of the geodesic diameter plugin is correct (as below, where "export" should ensure that the GD is added to the ROI manager):

run("Geodesic Diameter", "label=[MaskDuplicate] distances=[Chessknight (5,7,11)] image=[MaskDuplicate] export");

In the macro, I do get the GD results table (with identical results to the manual run) - but the GD selection does not appear in the ROI manager. Thus, I cannot do my intensity analysis using the macro.

I have already checked that both FIJI and the plugins are updated to the latest versions, so this should not be the cause.

Can this issue be fixed, or can I otherwise circumvent the issue? Thanks in advance!

dlegland commented 3 years ago

Hi,

thanks for reporting! This is actually problematic. I will try to have a look, while I'm not a great user of macros...

David