Re: selectWindow does not work
Posted by
Herbie on
Oct 27, 2019; 5:47pm
URL: http://imagej.273.s1.nabble.com/selectWindow-does-not-work-tp5022577p5022578.html
Good day,
there are several parts of your macro that are not perfectly correct but
first of all you should tell us how the file name really looks like.
What does "c:2/3 - "imageTitle" " mean?
imageTitle=File.nameWithoutExtension (missing semicolon)
This
setAutoThreshold("Default"); // automatic threshold
setThreshold(150, 65535); // fixed threshold
doesn't make sense because either you use the automatic threshold
"Default" or you set it to fixed values. The former is the way to go
because fixed thresholds don't generalize. If you are not happy with the
automatic "Default"-scheme, then you should use one of the other
options. In any case stay away from manually set thresholds.
Regards
Herbie
::::::::::::::::::::::::::::::::::
Am 27.10.19 um 17:40 schrieb kefe:
> 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");
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html