Login  Register

Plug-in recorder

Posted by João Silva on May 16, 2013; 6:13pm
URL: http://imagej.273.s1.nabble.com/Plug-in-recorder-tp5003030.html

Hi everyone!

I was using the plug-in recorder to save the following code:

IJ.run(imp2, "Gray Morphology", "radius=2 type=circle operator=erode");

I wanted to know if it is possible to do something equivalent to this:


int sizeE = 2; //sizeE is asked before since I don't want to call the plug-in I'm re-using itself
IJ.run(imp2, "Gray Morphology", "radius=sizeE type=circle operator=erode");

I have already tried this and ImageJ pops a dialog window saying:

Macro Error

Numeric Vvalue expected in run() function
Dialog box title: "Parameters"
Key: "radius of the structure element(pixels):"
Value or variable name: "sizeE"


I really don't know what to do.



Best Regards,

João

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html