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

Method getLuts

ij/src/main/java/ij/CompositeImage.java:578–590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

576
577 /* Returns a copy of this image's channel LUTs as an array. */
578 public LUT[] getLuts() {
579 int channels = getNChannels();
580 if (lut==null)
581 setupLuts(channels);
582 LUT[] luts = new LUT[channels];
583 for (int i=0; i<channels; i++) {
584 if (i<lut.length)
585 luts[i] = (LUT)lut[i].clone();
586 else
587 luts[i] = (LUT)lut[0].clone();
588 }
589 return luts;
590 }
591
592 /* Sets the channel LUTs with clones of the LUTs in 'luts'. */
593 public void setLuts(LUT[] luts) {

Callers 2

makeInvertedCompositeMethod · 0.95
copyLutsMethod · 0.95

Calls 3

setupLutsMethod · 0.95
cloneMethod · 0.65
getNChannelsMethod · 0.45

Tested by

no test coverage detected