boofcv.alg.geo.h
Class HomographyResidualTransfer
- java.lang.Object
-
- boofcv.alg.geo.h.HomographyResidualTransfer
-
- All Implemented Interfaces:
- ModelObservationResidualN<org.ejml.data.DenseMatrix64F,AssociatedPair>
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 Summary
Constructors Constructor and Description HomographyResidualTransfer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcomputeResiduals(AssociatedPair p, double[] residuals, int index)Compute the residual errors for the observationintgetN()The number of outputsvoidsetModel(org.ejml.data.DenseMatrix64F F)Specify the model being evaluated
-
-
-
Method Detail
-
setModel
public void setModel(org.ejml.data.DenseMatrix64F F)
Description copied from interface:ModelObservationResidualNSpecify the model being evaluated- Specified by:
setModelin interfaceModelObservationResidualN<org.ejml.data.DenseMatrix64F,AssociatedPair>- Parameters:
F- The model.
-
computeResiduals
public int computeResiduals(AssociatedPair p, double[] residuals, int index)
Description copied from interface:ModelObservationResidualNCompute the residual errors for the observation- Specified by:
computeResidualsin interfaceModelObservationResidualN<org.ejml.data.DenseMatrix64F,AssociatedPair>- Parameters:
p- Observation of point feature in two views- Returns:
- The new index. index + getN()
-
getN
public int getN()
Description copied from interface:ModelObservationResidualNThe number of outputs- Specified by:
getNin interfaceModelObservationResidualN<org.ejml.data.DenseMatrix64F,AssociatedPair>- Returns:
- number of outputs
-
-
DataMelt 3.0 © DataMelt by jWork.ORG