MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / useLineSubpixelConvention

Method useLineSubpixelConvention

ij/src/main/java/ij/gui/Roi.java:2500–2502  ·  view source on GitHub ↗

Returns 'true' if this ROI uses for drawing the convention for line and point ROIs, where the coordinates are with respect to the pixel center. Returns false for area rois, which have coordinates with respect to the upper left corners of the pixels

()

Source from the content-addressed store, hash-verified

2498 * Returns false for area rois, which have coordinates with respect to
2499 * the upper left corners of the pixels */
2500 protected boolean useLineSubpixelConvention() {
2501 return isLineOrPoint();
2502 }
2503
2504 /** Returns whether a roi created interactively should have subpixel resolution,
2505 * (if the roi type supports it), i.e., whether the magnification is high enough */

Callers 10

setIntBoundsMethod · 0.95
offScreenXMethod · 0.95
offScreenYMethod · 0.95
offScreenXDMethod · 0.95
offScreenYDMethod · 0.95
screenXDMethod · 0.95
screenYDMethod · 0.95
drawSplineMethod · 0.45
finishPolygonMethod · 0.45
resetBoundingRectMethod · 0.45

Calls 1

isLineOrPointMethod · 0.95

Tested by

no test coverage detected