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, type
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
calibratedValue, copy, generalEquation, particularEquation, rawValue
public AbstractCalibratedAxis(AxisType type)
public String unit()
CalibratedAxis
unit
in interface CalibratedAxis
public void setUnit(String unit)
CalibratedAxis
setUnit
in interface CalibratedAxis
public double averageScale(double rawValue1, double rawValue2)
CalibratedAxis
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.
averageScale
in interface CalibratedAxis
Copyright © 2014–2022 ImageJ. All rights reserved.