public class LinearCalibrator extends Object implements Calibrator
Calibrator
that maps values linearly from an
input space to an output space.Constructor and Description |
---|
LinearCalibrator(double scale,
double offset) |
Modifier and Type | Method and Description |
---|---|
double |
offset() |
double |
scale() |
void |
setOffset(double offset) |
void |
setScale(double scale) |
double |
toInput(double output)
Map an output double value to an input double value.
|
double |
toOutput(double input)
Map an input double value to an output double value.
|
public void setScale(double scale)
public void setOffset(double offset)
public double scale()
public double offset()
public double toOutput(double input)
Calibrator
toOutput
in interface Calibrator
public double toInput(double output)
Calibrator
toInput
in interface Calibrator
Copyright © 2014–2022 ImageJ. All rights reserved.