(LUT[] luts)
| 591 | |
| 592 | /* Sets the channel LUTs with clones of the LUTs in 'luts'. */ |
| 593 | public void setLuts(LUT[] luts) { |
| 594 | int channels = getNChannels(); |
| 595 | if (lut==null) setupLuts(channels); |
| 596 | if (luts==null || luts.length<channels) |
| 597 | throw new IllegalArgumentException("Lut array is null or too small"); |
| 598 | for (int i=0; i<channels; i++) |
| 599 | setChannelLut(luts[i], i+1); |
| 600 | } |
| 601 | |
| 602 | /** Copies the LUTs and display mode of 'imp' to this image. Does |
| 603 | nothing if 'imp' is not a CompositeImage or 'imp' and this |
no test coverage detected