Login  Register

Re: macro to save images as tif

Posted by mmettlen on Jan 31, 2014; 2:05pm
URL: http://imagej.273.s1.nabble.com/macro-to-save-images-as-tif-tp3684836p5006353.html

How can I incorporate the string 'name' from line 4 in the title of the duplicated image (line 5)?

1 n = roiManager("count");
2 for (i=0; i<n; i++) {
3 roiManager("select", i);
4 name = "ROI_"+i;
5 run("Duplicate...", "title="name.tif duplicate);}