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

Method trim

ij/src/main/java/ij/ImageStack.java:394–400  ·  view source on GitHub ↗

Frees memory by deleting a few slices from the end of the stack.

()

Source from the content-addressed store, hash-verified

392
393 /** Frees memory by deleting a few slices from the end of the stack. */
394 public void trim() {
395 int n = (int)Math.round(Math.log(nSlices)+1.0);
396 for (int i=0; i<n; i++) {
397 deleteLastSlice();
398 System.gc();
399 }
400 }
401
402 public String toString() {
403 String v = isVirtual()?"(V)":"";

Callers 13

duplicateStackMethod · 0.95
runMethod · 0.95
openStackMethod · 0.95
openAllMethod · 0.95
createStackMethod · 0.95
getShortTitleMethod · 0.45
installMacroMethod · 0.45
readExtraPluginsMethod · 0.45
installJarPluginMethod · 0.45
rewriteUrlFunction · 0.45
parseHashAttributesFunction · 0.45
remarkInlineImageFunction · 0.45

Calls 3

deleteLastSliceMethod · 0.95
roundMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected