()
| 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, |
no test coverage detected