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

Method shrinkRGB

ij/src/main/java/ij/plugin/Binner.java:179–185  ·  view source on GitHub ↗
(ColorProcessor cp, ColorProcessor cp2, int method)

Source from the content-addressed store, hash-verified

177 }
178
179 private ImageProcessor shrinkRGB(ColorProcessor cp, ColorProcessor cp2, int method) {
180 ByteProcessor bp = cp.getChannel(1, null);
181 cp2.setChannel(1, (ByteProcessor)shrink(bp, method));
182 cp2.setChannel(2, (ByteProcessor)shrink(cp.getChannel(2,bp), method));
183 cp2.setChannel(3, (ByteProcessor)shrink(cp.getChannel(3,bp), method));
184 return cp2;
185 }
186
187 private float getAverage(ImageProcessor ip, int x, int y) {
188 float sum = 0;

Callers 1

shrinkMethod · 0.95

Calls 3

shrinkMethod · 0.95
setChannelMethod · 0.80
getChannelMethod · 0.65

Tested by

no test coverage detected