(ImageProcessor ip, int x, int y)
| 237 | } |
| 238 | |
| 239 | private float getMax(ImageProcessor ip, int x, int y) { |
| 240 | float max = -Float.MAX_VALUE; |
| 241 | float pixel; |
| 242 | for (int y2=0; y2<yshrink; y2++) { |
| 243 | for (int x2=0; x2<xshrink; x2++) { |
| 244 | pixel = ip.getf(x*xshrink+x2, y*yshrink+y2); |
| 245 | if (pixel>max) |
| 246 | max = pixel; |
| 247 | } |
| 248 | } |
| 249 | return max; |
| 250 | } |
| 251 | |
| 252 | private float getSum(ImageProcessor ip, int x, int y) { |
| 253 | float sum = 0; |
no test coverage detected