NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 434 - AbstractIterableRegionOfInterest throws cursor exception if not within RandomAccessibleInterval
AbstractIterableRegionOfInterest throws cursor exception if not within Random...
Status: RESOLVED FIXED
Product: ImageJ
Classification: Unclassified
Component: ImgLib2
unspecified
All All
: P2 normal
Assigned To: Lee Kamentsky
Depends on:
Blocks:
 
Reported: 2012-05-31 14:49 CDT by Lee Kamentsky
Modified: 2015-04-06 15:48 CDT
1 user (show)

See Also:

Description Lee Kamentsky 2012-05-31 14:49:11 CDT
An IterableRegionOfInterest.getIterableIntervalOverROI returns an IterableInterval. If you feed it a cropped image (a RandomAccessibleInterval), then the Interval of the IterableInterval should be the intersection of the interval of the cropped image
and the IterableRegionOfInterest and the cursor should not throw an exception when it tries to set the position on the RandomAccessible outside of its interval.

There's some slight chance this isn't a bug - I'll write a test case that demonstrates the bug and if it turns out I'm wrong, I'll check in the test case and close the bug.