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

Method trimProcessor

ij/src/main/java/ij/ImagePlus.java:1104–1113  ·  view source on GitHub ↗

Frees RAM by setting the snapshot (undo) buffer in the current ImageProcessor to null.

()

Source from the content-addressed store, hash-verified

1102 /** Frees RAM by setting the snapshot (undo) buffer in
1103 the current ImageProcessor to null. */
1104 public void trimProcessor() {
1105 ImageProcessor ip2 = ip;
1106 if (!locked && ip2!=null) {
1107 if (IJ.debugMode) IJ.log(title + ": trimProcessor");
1108 Roi roi2 = getRoi();
1109 if (roi2!=null && roi2.getPasteMode()!=Roi.NOT_PASTING)
1110 roi2.endPaste();
1111 ip2.setSnapshotPixels(null);
1112 }
1113 }
1114
1115 /** For images with irregular ROIs, returns a byte mask, otherwise, returns
1116 * null. Mask pixels have a non-zero value.and the dimensions of the

Callers 14

killStackMethod · 0.95
revertMethod · 0.95
setCurrentWindowMethod · 0.95
runMethod · 0.95
scaleMethod · 0.95
convertToGray16Method · 0.80
convertToGray32Method · 0.80
convertToRGBStackMethod · 0.80
convertToHSBMethod · 0.80
convertToHSB32Method · 0.80
convertRGBStackToRGBMethod · 0.80
convertHSBToRGBMethod · 0.80

Calls 5

logMethod · 0.95
getRoiMethod · 0.95
getPasteModeMethod · 0.95
endPasteMethod · 0.95
setSnapshotPixelsMethod · 0.95

Tested by

no test coverage detected