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

Method removeScale

ij/src/main/java/ij/ImagePlus.java:2319–2328  ·  view source on GitHub ↗

Removes the spatial scaling of this image.

()

Source from the content-addressed store, hash-verified

2317
2318 /** Removes the spatial scaling of this image. */
2319 public void removeScale() {
2320 Calibration cal = getCalibration();
2321 cal.pixelWidth = 1.0;
2322 cal.pixelHeight = 1.0;
2323 cal.pixelDepth = 1.0;
2324 cal.setUnit("pixel");
2325 ImageWindow win = getWindow();
2326 if (win!=null)
2327 win.repaint();
2328 }
2329
2330 public boolean okToDeleteRoi() {
2331 if (roi!=null && (roi instanceof PointRoi) && getWindow()!=null && ((PointRoi)roi).promptBeforeDeleting()) {

Callers 1

doImageMethod · 0.95

Calls 4

getCalibrationMethod · 0.95
setUnitMethod · 0.95
getWindowMethod · 0.95
repaintMethod · 0.45

Tested by

no test coverage detected