M - type of modelpublic class TransformedSITR2d<M extends Model<Point2d,Point2d>> extends Object implements ResidualCalculator<Point2d,Point2d,M>
SingleImageTransferResidual2d that
pre-transforms both sets of points by predetermined transforms.| Constructor and Description |
|---|
TransformedSITR2d(Jama.Matrix t1,
Jama.Matrix t2)
Construct with the given transforms
|
| Modifier and Type | Method and Description |
|---|---|
double |
computeResidual(IndependentPair<Point2d,Point2d> data)
Compute the residual for a single point
|
void |
computeResiduals(List<? extends IndependentPair<Point2d,Point2d>> data,
double[] errors)
Compute the residual for a set of data points
|
void |
setModel(M model)
Set the current model being evaluated.
|
public TransformedSITR2d(Jama.Matrix t1, Jama.Matrix t2)
t1 - transform for first point in the pairt2 - transform for second point in the pairpublic void setModel(M model)
ResidualCalculatorResidualCalculator might
pre-cache variables based on the model for error computation.public double computeResidual(IndependentPair<Point2d,Point2d> data)
ResidualCalculatorcomputeResidual in interface ResidualCalculator<Point2d,Point2d,M extends Model<Point2d,Point2d>>data - the datapublic void computeResiduals(List<? extends IndependentPair<Point2d,Point2d>> data, double[] errors)
ResidualCalculatorcomputeResiduals in interface ResidualCalculator<Point2d,Point2d,M extends Model<Point2d,Point2d>>data - the dataerrors - the array to write the residuals into