Bug? Rotate composite image 90° ceases to be composite

imagej

#1

Hello,

I have some routines where a composite image is optionally rotated and then split. I noticed that the display range of the split images is not held after rotating and tracked it down to the fact that after a composite image is rotated, it ceases to be a composite image. This seems like a bug to me but perhaps it is expected behaviour? I can rewrite my routine to get around this, but I don’t think rotation should change the colour settings for an image.

MWE

newImage("a", "16-bit ramp", 512, 512,1);
newImage("b", "16-bit ramp", 512, 512,1);
selectWindow("a");
setMinAndMax(25, 4000);
run("Merge Channels...", "c1=a c2=b create");
run("Show Info...");
// Info shows image is a composite
run("Rotate 90 Degrees Right");
run("Show Info...");
// Info shows image is not a composite
/*
 * This causes problems if 
 * run("Stack to Images");
 * is executed next because display range info for each channel is lost

(Fiji Is Just) ImageJ 2.0.0-rc-68/1.52g; Java 1.8.0_172 [64-bit]; Mac OS X 10.14; 34MB of 5433MB (<1%)


#2

Good day,

I can confirm your finding to a certain extent.

I think that it is a problem of wrong LUT application only.
AFAIK the image data is not concerned.

Wayne (@Wayne) could you please have a look at this issue?

Regards

Herbie


#3

This 1.52h regression is fixed in the latest ImageJ daily build (1.52h38).


#4

Many thanks Wayne for the prompt fix!

Herbie


#5

Thank you very much!