Login  Register

selectWindow does not work

Posted by kefe on Oct 27, 2019; 4:40pm
URL: http://imagej.273.s1.nabble.com/selectWindow-does-not-work-tp5022577.html

Dear everyone,

I want to write a mini macro to -more or less- analyse my pictures
automatically. I recorded what I want to do with the according plugin and
now just needed to generalise the image name. I think that part worked but
somehow now the selectWindow command does not work anymore. (However, if I
run the command with the specific name as I recorded it, it works.)
The debug window says a ")" is missing in the selectWindow line.

Here is my "code":

imageTitle=File.nameWithoutExtension

run("Stack to Images");

selectWindow("c:2/3 - "imageTitle" ");

setAutoThreshold("Default");
//run("Threshold...");
setThreshold(150, 65535);
setThreshold(150, 65535);
setOption("BlackBackground", false);
run("Convert to Mask");
run("Watershed");
run("Set Measurements...", "area mean min integrated redirect=[c:1/3 -
"imageTitle" ] decimal=3");
run("Analyze Particles...", "size=50-Infinity display exclude clear");

Thanks for your help!

Cheers



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

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