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

Method magnificationForSubPixel

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

Returns whether a roi created interactively should have subpixel resolution, (if the roi type supports it), i.e., whether the magnification is high enough

()

Source from the content-addressed store, hash-verified

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 */
2506 protected boolean magnificationForSubPixel() {
2507 return magnificationForSubPixel(getMagnification());
2508 }
2509
2510 protected static boolean magnificationForSubPixel(double magnification) {
2511 return magnification > 1.5;

Callers 5

makeXorYArrayMethod · 0.80
PolygonRoiMethod · 0.80
LineMethod · 0.80
drawLineMethod · 0.80
moveHandleMethod · 0.80

Calls 1

getMagnificationMethod · 0.95

Tested by

no test coverage detected