You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used to give a Rectangle either of the bounds of the ROI if one was set or with the dimensions and origin of the whole image.
You could then use r.x or r.width regardless of whether there was an ROI or not, to scan pixels inside the ROI (if one was set) or the whole image (if no ROI was set).
Recently this broke so that this behaviour was not maintained leading to legacy code not working any more.
I fixed this for BoneJ's Slice Geometry by using ImagePlus.getRoi().getBounds() instead of the ImageStack-based methods. bonej-org/BoneJ2@8e91419
The text was updated successfully, but these errors were encountered:
Used to give a
Rectangle
either of the bounds of the ROI if one was set or with the dimensions and origin of the whole image.You could then use
r.x
orr.width
regardless of whether there was an ROI or not, to scan pixels inside the ROI (if one was set) or the whole image (if no ROI was set).Recently this broke so that this behaviour was not maintained leading to legacy code not working any more.
I fixed this for BoneJ's Slice Geometry by using
ImagePlus.getRoi().getBounds()
instead of theImageStack
-based methods.bonej-org/BoneJ2@8e91419
The text was updated successfully, but these errors were encountered: