Dear @MLNonet,
I usually do something like that:
- create a python script, for example py_with_args.py that does a blur with a radius and variance filter with anotther radius as inputs
#@Integer(label="blur radius", value = 2) rad_blur
#@Integer(label="variance radius", value = 2) rad_variance
from ij import IJ
imp = IJ.getImage();
IJ.run(imp, "Gaussian Blur...", "sigma="+str(rad_blur));
IJ.run(imp, "Variance...", "radius="+str(rad_variance));
-
save it in the Fiji plugins folder
-
then the macro will be:
run("Blobs (25K)"); //open a sample image, since in the python scripton I have imp=IJ.getImage()
run("py with args","rad_blur=10 rad_variance=3");
Using scriptparameters it’s not recorded by itself, but it works.
If I remember well if you use in python GenericDialog (https://imagej.nih.gov/ij/developer/api/ij/gui/GenericDialog.html) if you run the macro recorder also the parameters will be automatically recorded.
I hope it helps,
have a nice day
Emanuele