imagej / ImageJ

Public domain software for processing and analyzing scientific images
http://imagej.org
Other
513 stars 218 forks source link

ImagePlus.setPositionWithoutUpdate does not work for Hyperstacks #201

Closed Sethur closed 1 year ago

Sethur commented 1 year ago

On ImageJ v1.54c7, ImagePlus::setPositionWithoutUpdate(int channel, int slice, int frame) does still redraw and update the window (including the scrollbars) when used on hyperstacks, because the noUpdateMode class variable is ignored when isDisplayedHyperstack is true.

As a workaround, I currently have to use hard-to-interpret code like:

imp.setSliceWithoutUpdate((t-1)*slices*channels + (z-1)*channels + ch);
rasband commented 1 year ago

This bug is fixed in the ImageJ 1.54c14 daily build.