Thanks Fred,
however, the issue is with the GUI-operation, not with plugins or macros
(the latter was for demonstration only).
The person who originally contacted me, encountered the described
problem when using the GUI and I think GUI-operations should work correctly.
The relevant ImageJ source code is rather convoluted and would require
much effort to even understand the idea, not to speak of a correction...
Regards
Herbie
::::::::::::::::::::::::::::::::::::::::
Am 22.01.26 um 00:26 schrieb Fred Damen:
Greetings,
This may or may-not be related, but when changing a slice label using
imp.getStack(),setSliceLabel(string,int) the displayed slice label does
not change, even when using imp.repaintWindow(); albeit the documentation
implies but does not specifically state that repaitWindow would update the
label.
Fred
On Wed, January 21, 2026 7:25 am, Gluender 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.
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
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html