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

Method getMax

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

Source from the content-addressed store, hash-verified

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;

Callers 15

shrinkMethod · 0.95
getInfoMethod · 0.45
makeSurfacePlotMethod · 0.45
drawAndLabelAxisMethod · 0.45
runMethod · 0.45
save16BitImageMethod · 0.45
runMethod · 0.45
createHypervolMethod · 0.45
resetRGBMethod · 0.45
plotHistogramMethod · 0.45
applyRGBMethod · 0.45

Calls 1

getfMethod · 0.45

Tested by

no test coverage detected