private static double getZeroOffset(ImagePlus imp) { final Calibration cal = imp.getCalibration(); if (cal.getFunction() != Calibration.STRAIGHT_LINE) return 0; final double[] coeffs = cal.getCoefficients(); if (coeffs == null || coeffs.length == 0) return 0; return coeffs[0]; }
private static double getZeroOffset(ImagePlus imp) { final Calibration cal = imp.getCalibration(); if (cal.getFunction() != Calibration.STRAIGHT_LINE) return 0; final double[] coeffs = cal.getCoefficients(); if (coeffs == null || coeffs.length == 0) return 0; return coeffs[0]; }
if (cal.getFunction() == Calibration.STRAIGHT_LINE) { sb.append("; calibration="); double[] coeffs = cal.getCoefficients(); sb.append(coeffs[0]);
fileInfo.unit = calibration.getUnit(); fileInfo.calibrationFunction = calibration.getFunction(); fileInfo.coefficients = calibration.getCoefficients(); fileInfo.valueUnit = calibration.getValueUnit(); fileInfo.frameInterval = calibration.frameInterval;
public void storeCurrentChannelProperties() { final int channel = getCurrentChannel(); storeChannelProperties(channel); // Density calibration properties final ChannelCalibration chCal = chCalibration[channel - 1]; if (getGlobalCalibration() == null) { final Calibration cal = getCalibration(); chCal.setFunction(cal.getFunction(), cal.getCoefficients(), cal .getValueUnit(), cal.zeroClip()); } }
double[] coeffs = cal.getCoefficients(); assertTrue(coeffs.length >= 1); assertEquals(calib, coeffs[0], 0.0);
max = cal.getCValue((int)max); double[] coef = cal.getCoefficients(); if (coef != null) { a = coef[0];
if (cal.calibrated()) { fi.calibrationFunction = cal.getFunction(); fi.coefficients = cal.getCoefficients(); fi.valueUnit = cal.getValueUnit(); } else if (!Calibration.DEFAULT_VALUE_UNIT.equals(cal.getValueUnit()))
if (cal.calibrated()) { fi.calibrationFunction = cal.getFunction(); fi.coefficients = cal.getCoefficients(); fi.valueUnit = cal.getValueUnit(); } else if (!Calibration.DEFAULT_VALUE_UNIT.equals(cal.getValueUnit()))
int function = cal.getFunction(); oldFunction = function; double[] p = cal.getCoefficients(); unit = cal.getValueUnit(); if (unit == Calibration.DEFAULT_VALUE_UNIT)
int function = cal.getFunction(); oldFunction = function; double[] p = cal.getCoefficients(); unit = cal.getValueUnit(); if (unit == Calibration.DEFAULT_VALUE_UNIT)
if (x!=null&&y!=null&&x.length>0&&y.length>0) plot.addPoints(x, y, PlotWindow.CIRCLE); double[] p = cal.getCoefficients(); if (fit<=Calibration.LOG2) { drawLabel(plot, CurveFitter.fList[fit]);
max_ = cal.getCValue((int)max_); double[] coef = cal.getCoefficients(); if (coef != null) { a = coef[0];
if (x!=null&&y!=null&&x.length>0&&y.length>0) plot.addPoints(x, y, PlotWindow.CIRCLE); double[] p = cal.getCoefficients(); if (fit<=Calibration.LOG2) { drawLabel(plot, CurveFitter.fList[fit]);
else s += CurveFitter.fList[curveFit]+"\n"; double[] c = cal.getCoefficients(); if (c!=null) { s += " a: "+IJ.d2s(c[0],6)+"\n";
else s += CurveFitter.fList[curveFit]+"\n"; double[] c = cal.getCoefficients(); if (c!=null) { s += " a: "+IJ.d2s(c[0],6)+"\n";