(ImageProcessor ip, int x, int y)
| 224 | } |
| 225 | |
| 226 | private float getMin(ImageProcessor ip, int x, int y) { |
| 227 | float min = Float.MAX_VALUE; |
| 228 | float pixel; |
| 229 | for (int y2=0; y2<yshrink; y2++) { |
| 230 | for (int x2=0; x2<xshrink; x2++) { |
| 231 | pixel = ip.getf(x*xshrink+x2, y*yshrink+y2); |
| 232 | if (pixel<min) |
| 233 | min = pixel; |
| 234 | } |
| 235 | } |
| 236 | return min; |
| 237 | } |
| 238 | |
| 239 | private float getMax(ImageProcessor ip, int x, int y) { |
| 240 | float max = -Float.MAX_VALUE; |
no test coverage detected