Frees RAM by setting the snapshot (undo) buffer in the current ImageProcessor to null.
()
| 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 |
no test coverage detected