本文整理汇总了Java中ij.measure.Calibration.getUnits方法的典型用法代码示例。如果您正苦于以下问题:Java Calibration.getUnits方法的具体用法?Java Calibration.getUnits怎么用?Java Calibration.getUnits使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ij.measure.Calibration
的用法示例。
在下文中一共展示了Calibration.getUnits方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: makePlot
import ij.measure.Calibration; //导入方法依赖的package包/类
static public Plot makePlot(final CATAParameters cp, final String name, final VectorString3D c) {
final double[] stdDev = c.getStdDevAtEachPoint();
if (null == stdDev) return null;
final double[] index = new double[stdDev.length];
for (int i=0; i<index.length; i++) index[i] = i;
Utils.log2("name is " + name);
Utils.log2("c is " + c);
Utils.log2("cp is " + cp);
Utils.log2("stdDev is " + stdDev);
Utils.log2("c.getCalibrationCopy() is " + c.getCalibrationCopy());
Utils.log2("c.getDelta() is " + c.getDelta());
final Calibration cal = c.getCalibrationCopy();
if (null == cal) Utils.log2("WARNING null calibration!");
final Plot plot = new Plot(name, name + " -- Point index (delta: " + Utils.cutNumber(c.getDelta(), 2) + " " + (null == cal ? "pixels" : cal.getUnits()) + ")", "Std Dev", index, stdDev);
plot.setLimits(0, cp.plot_max_x, 0, cp.plot_max_y);
plot.setSize(cp.plot_width, cp.plot_height);
plot.setLineWidth(2);
return plot;
}