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