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

Method update

ij/src/main/java/ij/ImageStack.java:212–219  ·  view source on GitHub ↗

Updates this stack so its attributes, such as min, max, calibration table and color model, are the same as 'ip'.

(ImageProcessor ip)

Source from the content-addressed store, hash-verified

210 /** Updates this stack so its attributes, such as min, max,
211 calibration table and color model, are the same as 'ip'. */
212 public void update(ImageProcessor ip) {
213 if (ip!=null) {
214 min = ip.getMin();
215 max = ip.getMax();
216 cTable = ip.getCalibrationTable();
217 cm = ip.getColorModel();
218 }
219 }
220
221 /** Returns the pixel array for the specified slice, where {@literal 1<=n<=nslices}. */
222 public Object getPixels(int n) {

Callers 3

getStackMethod · 0.95
openTiffStackMethod · 0.95
sortStackMethod · 0.95

Calls 4

getCalibrationTableMethod · 0.80
getMinMethod · 0.45
getMaxMethod · 0.45
getColorModelMethod · 0.45

Tested by

no test coverage detected