I am currently using a macro for watershedding.
The line for calling the plugin in a macro reads as follows (given by the authors):
run("Watershed Segmentation", "blurring='1.0' watershed='1 1 0 190 1 0' display='0' ");
I want a dialogue at the beginning in which the user can predefine his settings. This dialogue is all set an done and all inputs are assigned to a variable.
However, when I modify the line:
run("Watershed Segmentation", "blurring=vblurring watershed='1 1 minimumWS maximumWS 1 0' display='0' ");
ImageJ gives an error message saying “java.lang.NumberFormatException: For input string: “vblurring””
I am confused because this works for other plugins. I used the following line in the past:
run("Analyze Particles...", "size=pixelmin-pixelmax circularity=lowercirc-uppercirc clear summarize add");
Is there any easy way to achieve what I described?
Or do I need to go into the individual .class files?
Thank you for your help!