(ColorProcessor cp, ColorProcessor cp2, int method)
| 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; |
no test coverage detected