|
Bugzilla – Bug 1052 |
Stack overflow upon measuring perimeter of a rounded rectangle ROI |
Last modified: 2015-04-09 23:52:32 CDT |
| ⚠ |
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. |
| Stack overflow upon measuring perimeter of a rounded rectangle ROI | |
|
|
|
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
Measuring the perimeter of a rectangular ROI after using Edit>Selection>Make rectangular selection rounded causes a stack overflow exception. Macro to reproduce the error: newImage("ROI_crash", "8-bit black", 1392, 1040, 1); makeRectangle(660, 222, 80, 80); run("Set Measurements...", "area mean min centroid center perimeter display redirect=None decimal=3"); run("Make rectangular selection rounded", "radius=5"); run("Measure"); Exception: java.lang.StackOverflowError at java.awt.geom.Path2D$Float$TxIterator.currentSegment(Path2D.java:952) at ij.gui.ShapeRoi.parsePath(ShapeRoi.java:891) at ij.gui.ShapeRoi.getRois(ShapeRoi.java:463) at ij.gui.ShapeRoi.getLength(ShapeRoi.java:651) at ij.gui.ShapeRoi.getLength(ShapeRoi.java:657) The last line is repeated many times.