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

Method getLuts

ij/src/main/java/ij/ImagePlus.java:484–494  ·  view source on GitHub ↗

Returns an array containing the lookup tables used by this image, one per channel, or an empty array if this is an RGB image. @see #getNChannels @see #isComposite @see #getCompositeMode Javascript example: luts = imp.getLuts(); for (i=0; i IJ.log((i+1)+“: “+lut

()

Source from the content-addressed store, hash-verified

482 * </pre>
483 */
484 public LUT[] getLuts() {
485 ImageProcessor ip2 = getProcessor();
486 if (ip2==null)
487 return new LUT[0];
488 LUT lut = ip2.getLut();
489 if (lut==null)
490 return new LUT[0];
491 LUT[] luts = new LUT[1];
492 luts[0] = lut;
493 return luts;
494 }
495
496 /** Calls draw to draw the image and also repaints the
497 image window to force the information displayed above

Callers 2

runMethod · 0.95
setImageMethod · 0.45

Calls 2

getProcessorMethod · 0.95
getLutMethod · 0.95

Tested by

no test coverage detected