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

Method setPointScale

ij/src/main/java/ij/ImagePlus.java:3456–3472  ·  view source on GitHub ↗
(Roi roi2, Overlay overlay2)

Source from the content-addressed store, hash-verified

3454 }
3455
3456 private void setPointScale(Roi roi2, Overlay overlay2) {
3457 ImageCanvas ic = getCanvas();
3458 if (ic==null)
3459 return;
3460 double scale = 1.0/ic.getMagnification();
3461 if (scale==1.0)
3462 return;
3463 if (roi2!=null && (roi2 instanceof PointRoi))
3464 roi2.setFlattenScale(scale);
3465 if (overlay2!=null) {
3466 for (int i=0; i<overlay2.size(); i++) {
3467 roi2 = overlay2.get(i);
3468 if (roi2!=null && (roi2 instanceof PointRoi))
3469 roi2.setFlattenScale(scale);
3470 }
3471 }
3472 }
3473
3474 /** Assigns a LUT (lookup table) to this image.
3475 * @see ij.io.Opener#openLut

Callers 1

flattenMethod · 0.95

Calls 5

getCanvasMethod · 0.95
getMagnificationMethod · 0.95
setFlattenScaleMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected