Re: Plug-in recorder
Posted by
dscho on
URL: http://imagej.273.s1.nabble.com/Plug-in-recorder-tp5003030p5003032.html
Hi João,
On Thu, 16 May 2013, João Silva wrote:
> 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");
The reason this does not work is because you put "sizeE" *inside* a
String, therefore it is treated as plain text, not a variable name. You
probably wanted to let Java concatenate the value of the variable, though:
... "radius=" + sizeE + "..."
instead of
... "radius=sizeE ..."
Hth,
Johannes
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html