Login  Register

Re: Variable in filename

Posted by lihong.zhan on Nov 15, 2017; 1:56am
URL: http://imagej.273.s1.nabble.com/Variable-in-filename-tp5013596p5019712.html

Hi,

Thanks for the post. I run into the same problem and was able to solve by
simply add "&" in front of my variable.

Lihong

Detailed explanation can be found in the following link.

https://imagej.nih.gov/ij/developer/macro/macros.html


With ImageJ 1.43 and later, there is an easier method that only requires
adding "&" to the variable name in the options string:
   noise = 50;
   output = "Point Selection";
   run("Find Maxima...", "noise=&noise output=&output light");
String variables passed using this method do not have to be enclosed in
brackets. For more examples, see the ArgumentPassingDemo macro.



--
Sent from: http://imagej.1557.x6.nabble.com/

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