bug with split channels?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bug with split channels?

Cammer, Michael-2
When we split channels from the menu for the file 10X10_bg1.tif, we get the correct tiltes in the resulting images of C1-10X10_bg1.tif and C2-10X10_bg1.tif.

However, from within a macro, the results are C1-10X10_bg1.tif and 10X10_bg1.tif0.

We find this problem with ImageJ 1.52p and ImageJ 1.52q45.

The odd part is that this wasn't happening earlier today but is happening now. We quict and restarted the software and updated to the daily build.

The full code is:
macro "iterate colocalization test" {
  title = getTitle;
  run("Split Channels");
  ch1 = "C1-"+title;
  ch2 = "C2-"+title;

Any help appreciated.

Thank you!

Michael Cammer, Sr Research Scientist, DART Microscopy Laboratory
NYU Langone Health, 540 First Avenue, SK2 Microscopy Suite, New York, NY  10016
Office: 646-501-0567 Cell: 914-309-3270  [hidden email]<mailto:[hidden email]>
http://nyulmc.org/micros  http://microscopynotes.com/
Acknowledgement in your publications and presentations of work performed in the Microscopy Core plays a vital role in securing support and the funding necessary to maintain and operate this valuable research resource.   For publications that were made possible by work performed in the core, please use the acknowledgement statement "We thank the NYU Langone Microscopy Core for experimental and technical support" and include required grant numbers as listed here http://microscopynotes.com/ilabnyu/acknowledgements2017.pdf
Please also consider staff for co-authorship if they played a key role in the study.



--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: bug with split channels?

Wayne Rasband-2
> On Sep 6, 2019, at 3:18 PM, Cammer, Michael <[hidden email]> wrote:
>
> When we split channels from the menu for the file 10X10_bg1.tif, we get the correct tiltes in the resulting images of C1-10X10_bg1.tif and C2-10X10_bg1.tif.
>
> However, from within a macro, the results are C1-10X10_bg1.tif and 10X10_bg1.tif0.

Please provide a small macro that we can run to reproduce this problem. The following example

  close("*");
  setBatchMode(true);
  newImage("10X10_bg1.tif", "16-bit composite label", 400, 300, 2, 1, 1);
  run("Split Channels");
  selectImage(1);
  print(getTitle);
  selectImage(2);
  print(getTitle);

works as expected, outputting

  C1-10X10_bg1.tif
  C2-10X10_bg1.tif

-wayne


> We find this problem with ImageJ 1.52p and ImageJ 1.52q45.
>
> The odd part is that this wasn't happening earlier today but is happening now. We quict and restarted the software and updated to the daily build.
>
> The full code is:
> macro "iterate colocalization test" {
>  title = getTitle;
>  run("Split Channels");
>  ch1 = "C1-"+title;
>  ch2 = "C2-"+title;
>
> Any help appreciated.

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