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

Method getThreshold

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

Source from the content-addressed store, hash-verified

2164 }
2165
2166 void getThreshold() {
2167 Variable lower = getFirstVariable();
2168 Variable upper = getLastVariable();
2169 ImagePlus imp = getImage();
2170 ImageProcessor ip = getProcessor();
2171 double t1 = ip.getMinThreshold();
2172 double t2 = ip.getMaxThreshold();
2173 if (t1==ImageProcessor.NO_THRESHOLD) {
2174 t1 = -1;
2175 t2 = -1;
2176 } else {
2177 Calibration cal = imp.getCalibration();
2178 t1 = cal.getCValue(t1);
2179 t2 = cal.getCValue(t2);
2180 }
2181 lower.setValue(t1);
2182 upper.setValue(t2);
2183 }
2184
2185 void getPixelSize() {
2186 Variable unit = getFirstVariable();

Callers 1

doFunctionMethod · 0.95

Calls 9

getFirstVariableMethod · 0.95
getLastVariableMethod · 0.95
getImageMethod · 0.95
getProcessorMethod · 0.95
getMinThresholdMethod · 0.95
getMaxThresholdMethod · 0.95
getCalibrationMethod · 0.95
getCValueMethod · 0.95
setValueMethod · 0.95

Tested by

no test coverage detected