(int channels, ImageStack stack2)
| 131 | } |
| 132 | |
| 133 | synchronized void setup(int channels, ImageStack stack2) { |
| 134 | if (stack2!=null && stack2.getSize()>0 && (stack2.getProcessor(1) instanceof ColorProcessor)) { // RGB? |
| 135 | cip = null; |
| 136 | lut = null; |
| 137 | return; |
| 138 | } |
| 139 | setupLuts(channels); |
| 140 | if (mode==COMPOSITE) { |
| 141 | cip = new ImageProcessor[channels]; |
| 142 | for (int i=0; i<channels; ++i) { |
| 143 | cip[i] = stack2.getProcessor(i+1); |
| 144 | cip[i].setLut(lut[i]); |
| 145 | } |
| 146 | currentSlice = currentFrame = 1; |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | void setupLuts(int channels) { |
| 151 | if (ip==null) |
no test coverage detected