public abstract class AbstractCalibratedAxis extends DefaultTypedAxis implements CalibratedAxis
CalibratedAxis.| Constructor and Description |
|---|
AbstractCalibratedAxis(AxisType type) |
AbstractCalibratedAxis(AxisType type,
String unit) |
| Modifier and Type | Method and Description |
|---|---|
double |
averageScale(double rawValue1,
double rawValue2)
Returns the average scale between two raw value coordinates along an axis.
|
boolean |
equals(Object o) |
int |
hashCode() |
void |
setUnit(String unit)
Sets the dimension's unit.
|
String |
unit()
Gets the dimension's unit.
|
setType, typeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcalibratedValue, copy, generalEquation, particularEquation, rawValuepublic AbstractCalibratedAxis(AxisType type)
public String unit()
CalibratedAxisunit in interface CalibratedAxispublic void setUnit(String unit)
CalibratedAxissetUnit in interface CalibratedAxispublic double averageScale(double rawValue1,
double rawValue2)
CalibratedAxisIn 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.
averageScale in interface CalibratedAxisCopyright © 2014–2022 ImageJ. All rights reserved.