Re: selectWindow does not work
Posted by
kefe on
Oct 27, 2019; 6:45pm
URL: http://imagej.273.s1.nabble.com/selectWindow-does-not-work-tp5022577p5022579.html
Thanks for the fast reply!
I added the semicolon though I am not sure if that changed anything ;)
Sorry, I copied the wrong version of the line. It is:
selectWindow("c:2/3 - " + imageTitle );
Somehow it does not give me the error anymore. (I had it like this before as
well)
I thought I have to use it because after converting the stack to single
images the prefix "c:1/3 - ", "c:2/3 - " and "c:3/3 - " are added to the
window name depending on which channel is displayed in the window. Thats why
I think I need to add the prefix in the name.
I now figured out that apparently the problem is that I want to work on the
not active second window/image and imageJ does not scan the open windows and
just checks if the active window is named ""c:2/3 - " + imageTitle". So I
actually need a command so ImageJ would set the threshold on the not active
window "c:2/3 - " + imageTitle.
--
Sent from:
http://imagej.1557.x6.nabble.com/--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html