InsightSoftwareConsortium / itkwidgets

An elegant Python interface for visualization on the web platform to interactively generate insights into multidimensional images, point sets, and geometry.
https://itkwidgets.readthedocs.io/
Apache License 2.0
582 stars 83 forks source link

BUG: Fetch current scale before use in roi methods #719

Closed thewtex closed 9 months ago

thewtex commented 9 months ago

multiscales.images[-1] is not going to produce the expected results.

Explicitly fetch the current scale when getting the roi slice. I did not test this, but hopefully it will yield more consistent results if the viewer is exploring different resolutions.