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 598 - Roi width and height capped at 99999
Roi width and height capped at 99999
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: ImageJ1
unspecified
All All
: P5 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2013-04-30 05:28 CDT by Stephan Saalfeld
Modified: 2013-07-07 10:24 CDT
2 users (show)

See Also:

Description Stephan Saalfeld 2013-04-30 05:28:16 CDT
Roi roi = new Roi(0,0,163840,163840);

unexpectedly creates a

Roi[Rectangle, x=0, y=0, width=99999, height=99999]


The reason is this very arbitrary choice:

https://github.com/fiji/imagej1/blob/master/ij/gui/Roi.java#L181


If there is no rational argument for this surprising behavior, I strongly vote for replacing these lines by

xMax = Integer.MAX_VALUE;
yMax = Integer.MAX_VALUE;

Thanks in advance.

Best,
Stephan
Comment 1 Wayne Rasband 2013-04-30 15:49:01 CDT
This bug is fixed in the ImageJ 1.47q2 daily build.