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

Method updateVirtualSlice

ij/src/main/java/ij/ImagePlus.java:410–418  ·  view source on GitHub ↗

Use to update the image when the underlying virtual stack changes.

()

Source from the content-addressed store, hash-verified

408
409 /** Use to update the image when the underlying virtual stack changes. */
410 public void updateVirtualSlice() {
411 ImageStack vstack = getStack();
412 if (vstack.isVirtual()) {
413 double min=getDisplayRangeMin(), max=getDisplayRangeMax();
414 setProcessor(vstack.getProcessor(getCurrentSlice()));
415 setDisplayRange(min,max);
416 } else
417 throw new IllegalArgumentException("Virtual stack required");
418 }
419
420 /** Sets the display mode of composite color images, where 'mode'
421 should be IJ.COMPOSITE, IJ.COLOR or IJ.GRAYSCALE. */

Callers

nothing calls this directly

Calls 8

getStackMethod · 0.95
isVirtualMethod · 0.95
getDisplayRangeMinMethod · 0.95
getDisplayRangeMaxMethod · 0.95
setProcessorMethod · 0.95
getProcessorMethod · 0.95
getCurrentSliceMethod · 0.95
setDisplayRangeMethod · 0.95

Tested by

no test coverage detected