public class HomographyResidualTransfer extends java.lang.Object implements ModelObservationResidualN<org.ejml.data.DenseMatrix64F,AssociatedPair>
Computes the difference between the point projected by the homography and its observed location. Fast to compute but less theoretically correct than others.
| Constructor and Description |
|---|
HomographyResidualTransfer() |
| Modifier and Type | Method and Description |
|---|---|
int |
computeResiduals(AssociatedPair p,
double[] residuals,
int index)
Compute the residual errors for the observation
|
int |
getN()
The number of outputs
|
void |
setModel(org.ejml.data.DenseMatrix64F F)
Specify the model being evaluated
|
public void setModel(org.ejml.data.DenseMatrix64F F)
ModelObservationResidualNsetModel in interface ModelObservationResidualN<org.ejml.data.DenseMatrix64F,AssociatedPair>F - The model.public int computeResiduals(AssociatedPair p, double[] residuals, int index)
ModelObservationResidualNcomputeResiduals in interface ModelObservationResidualN<org.ejml.data.DenseMatrix64F,AssociatedPair>p - Observation of point feature in two viewspublic int getN()
ModelObservationResidualNgetN in interface ModelObservationResidualN<org.ejml.data.DenseMatrix64F,AssociatedPair>