Thanks Wayne,

I already wrote Michael off-list.

A doctoral student has asked me for help and by doing so I was confronted with this little discrepancy. I think she will be very happy when seeing the correct slice names now!

All the very best for you and thanks in general for ImageJ

Herbie

::::::::::::::::::::::::::::::::::::::::::
Am 25.01.26 um 05:14 schrieb Wayne Rasband:
On Jan 21, 2026, at 8:26 AM, Gluender <[email protected]> wrote:

Dear experts,

in certain cases there seems to be a discrepancy between the slice/channel 
sequence of a hyperstack and the slice/channel label naming.

Dear Herbie,

Thanks to Michael Schmid, this bug is fixed in the ImageJ 1.54s13 daily build.

-wayne

Attached please find a stack "stack.tif" consisting of six slices that stand for two 
z-positions and three colours. When opening as *virtual* stack and applying "Stack to 
Hyperstack..." to this stack with setting

Order:  xyzct
Channels 3
Slices   2
Frames   1

the result is the attached hyperstack "hyperstack-V.tif".

Corresponding ImageJ-macro:
  path=File.openDialog("choose file \"stack.tif\"") ;
  run("TIFF Virtual Stack...","open="+path);
  run("Stack to Hyperstack...","channels=3 slices=2 frames=1");
  Stack.setDisplayMode("color");
  exit();

The resulting hyperstack shows the *correct sequence* of slices and colours but the names 
of slice/channel *labels are discrepant* (see the attached screen-shot 
"example-view").

The effect does *not* occur, if "Stack to Hyperstack..." is applied to the real 
stack, i.e. not to the virtual stack.

Could someone please confirm and perhaps even remedy this strange behaviour?

Regards

Herbie



--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
<stack.tif>
<setting.png>
<hyperstack-V.tif>
<example-view_hyperstack-V.tiff>

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


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

Reply via email to