本文整理了Java中ij.plugin.filter.Analyzer.setPrecision()
方法的一些代码示例,展示了Analyzer.setPrecision()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.setPrecision()
方法的具体详情如下:
包路径:ij.plugin.filter.Analyzer
类名称:Analyzer
方法名:setPrecision
[英]Sets the number of digits displayed to the right of decimal point.
[中]设置小数点右侧显示的位数。
代码示例来源:origin: ca.mcgill/Sholl_Analysis
private void resetOptions() {
// Reset plugin parameters
Prefs.set(PREFS_KEY, null);
currentBooleanPrefs = UNSET_PREFS;
Prefs.set(HASHMAP_KEY, null);
hashMapString = "";
// Reset Sholl metrics and output options
Prefs.set(METRICS_KEY, null);
Prefs.set(METRICS_KEY + ".comment", null);
Prefs.set(MASK_KEY, null);
Prefs.set(MASK_KEY + ".type", null);
setPlotOutput(DEFAULT_PLOT_OUTPUT);
currentMetrics = UNSET_PREFS;
commentString = null;
maskBackground = UNSET_PREFS;
maskType = UNSET_PREFS;
// Reset Analyzer prefs
Analyzer.setPrecision(3);
Analyzer.setMeasurement(Measurements.SCIENTIFIC_NOTATION, false);
// Reset other global IJ prefs
Prefs.setThreads(Runtime.getRuntime().availableProcessors());
Prefs.set("options.ext", null);
}
代码示例来源:origin: net.imagej/ij
Roi.setColor(roiColor);
Analyzer.setMeasurements(measurements);
Analyzer.setPrecision(decimalPlaces);
ColorProcessor.setWeightingFactors(weights[0], weights[1], weights[2]);
Prefs.blackBackground = blackBackground;
代码示例来源:origin: imagej/ImageJA
Roi.setColor(roiColor);
Analyzer.setMeasurements(measurements);
Analyzer.setPrecision(decimalPlaces);
ColorProcessor.setWeightingFactors(weights[0], weights[1], weights[2]);
Prefs.blackBackground = blackBackground;
代码示例来源:origin: ca.mcgill/Sholl_Analysis
extension = "." + extension;
Prefs.set("options.ext", extension);
Analyzer.setPrecision(Math.min(Math.max((int) gd.getNextNumber(), 0), 9));
Analyzer.setMeasurement(Measurements.SCIENTIFIC_NOTATION, gd.getNextBoolean());
内容来源于网络,如有侵权,请联系作者删除!