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

Method setMinAndMax

ij/src/main/java/ij/macro/Functions.java:6202–6214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6200 }
6201
6202 void setMinAndMax() {
6203 double min = getFirstArg();
6204 double max = getNextArg();
6205 int channels = 7;
6206 if (interp.nextToken()==',') {
6207 channels = (int)getLastArg();
6208 if (getImage().getBitDepth()!=24)
6209 interp.error("RGB image required");
6210 } else
6211 interp.getRightParen();
6212 IJ.setMinAndMax(min, max, channels);
6213 resetImage();
6214 }
6215
6216 String debug() {
6217 IJ.protectStatusBar(false);

Callers 1

doFunctionMethod · 0.95

Calls 10

getFirstArgMethod · 0.95
getNextArgMethod · 0.95
getLastArgMethod · 0.95
getImageMethod · 0.95
setMinAndMaxMethod · 0.95
resetImageMethod · 0.95
getRightParenMethod · 0.80
nextTokenMethod · 0.45
getBitDepthMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected