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

Method getMin

ij/src/main/java/ij/plugin/Binner.java:226–237  ·  view source on GitHub ↗
(ImageProcessor ip, int x, int y)

Source from the content-addressed store, hash-verified

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;

Callers 13

shrinkMethod · 0.95
getInfoMethod · 0.45
makeSurfacePlotMethod · 0.45
drawAndLabelAxisMethod · 0.45
runMethod · 0.45
createHypervolMethod · 0.45
resetRGBMethod · 0.45
applyRGBMethod · 0.45
resetMinAndMaxMethod · 0.45
scaleDownMethod · 0.45
scaleUpMethod · 0.45

Calls 1

getfMethod · 0.45

Tested by

no test coverage detected