public interface CalibratedAxis extends TypedAxis
AxisType
, unit and calibration.TypedAxis
Modifier and Type | Method and Description |
---|---|
double |
averageScale(double rawValue1,
double rawValue2)
Returns the average scale between two raw value coordinates along an axis.
|
double |
calibratedValue(double rawValue)
Returns a calibrated value given a raw position along the axis.
|
CalibratedAxis |
copy()
Creates an exact duplicate of this axis.
|
String |
generalEquation()
Gets the general equation representing values along this axis; for
instance:
y = m*x + b . |
String |
particularEquation()
Gets the particular equation representing values along this axis; for
instance:
y = (14)*x + (4) . |
double |
rawValue(double calibratedValue)
Returns a raw value given a calibrated position along the axis.
|
void |
setUnit(String unit)
Sets the dimension's unit.
|
String |
unit()
Gets the dimension's unit.
|
String unit()
void setUnit(String unit)
double calibratedValue(double rawValue)
double rawValue(double calibratedValue)
String generalEquation()
y = m*x + b
.String particularEquation()
y = (14)*x + (4)
.double averageScale(double rawValue1, double rawValue2)
In the limit this is actually the derivative at a point. For linear axes this value never varies, and there is no error. For nonlinear axes this returns the linear scale between the points and thus may be inaccurate. Calls to this method may point out areas of code that should be generalized to work with nonlinear axes.
CalibratedAxis copy()
Copyright © 2014–2022 ImageJ. All rights reserved.