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

Method invertLookupTable

ij/src/main/java/ij/ImagePlus.java:627–638  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

625 }
626
627 void invertLookupTable() {
628 int nImages = getStackSize();
629 ip.invertLut();
630 if (nImages==1)
631 ip.invert();
632 else {
633 ImageStack stack2 = getStack();
634 for (int i=1; i<=nImages; i++)
635 stack2.getProcessor(i).invert();
636 stack2.setColorModel(ip.getColorModel());
637 }
638 }
639
640 /** Waits until the image window becomes activated. This is necessary in
641 * macros or other programs if an ImagePlus is shown on the screen,

Callers 2

showMethod · 0.95
revertMethod · 0.95

Calls 7

getStackSizeMethod · 0.95
getStackMethod · 0.95
getProcessorMethod · 0.95
setColorModelMethod · 0.95
invertLutMethod · 0.45
invertMethod · 0.45
getColorModelMethod · 0.45

Tested by

no test coverage detected