Login  Register

Re: bug with split channels?

Posted by Wayne Rasband-2 on Sep 07, 2019; 3:24am
URL: http://imagej.273.s1.nabble.com/bug-with-split-channels-tp5022419p5022421.html

> 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