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

Method setup

ij/src/main/java/ij/CompositeImage.java:133–148  ·  view source on GitHub ↗
(int channels, ImageStack stack2)

Source from the content-addressed store, hash-verified

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)

Callers 2

updateImageMethod · 0.95
resetMethod · 0.95

Calls 4

setupLutsMethod · 0.95
getSizeMethod · 0.65
getProcessorMethod · 0.45
setLutMethod · 0.45

Tested by

no test coverage detected