Login  Register

Re: macro to save images as tif

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

Change 5 into
run("Duplicate...", "title="+name+".tif duplicate"

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of mmettlen
Sent: 31 January 2014 14:05
To: [hidden email]
Subject: Re: macro to save images as tif

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);}



--
View this message in context: http://imagej.1557.x6.nabble.com/macro-to-save-images-as-tif-tp3684836p5006353.html
Sent from the ImageJ mailing list archive at Nabble.com.

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

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