Login  Register

Re: selectWindow does not work

Posted by Herbie on Oct 28, 2019; 10:07am
URL: http://imagej.273.s1.nabble.com/selectWindow-does-not-work-tp5022577p5022587.html

Thanks for the details Kerstin!

Please run the following test-macro.
(Copy the macro code lines to an empty macro window
"Plugins >> New >> Macro" and run it.)
////
imgTitle="191014_Hela_5min.czi"; // name of the open stack
nme=split(imgTitle, ".");
print("c:1/2 - "+nme[0]);
////

For me the Log-window then shows the string:
   c:1/2 - 191014_Hela_5min
which should be the title of the desired image after calling
   run("Stack to Images");

Please confirm that the Log-window shows the correct name of the image.

Regards

Herbie

::::::::::::::::::::::::::::::::::
Am 28.10.19 um 10:52 schrieb kefe:
> Hello,
>
> the name of the image is in general the date-cellline-time.czi for example:
> 191014_Hela_5min.czi optionally.nd2
>
> well, the files are saved like this by the microscope and I dont think I
> have any possibility to change it.
>
> Best,

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