()
| 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(); |
no test coverage detected