public class DistanceHomographySq extends java.lang.Object implements org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,AssociatedPair>
Computes the Euclidean error squared between 'p1' and 'p2' after projecting 'p1' into image 2. Input can be in pixels or normalized image coordinates, but the error for normalized image coordinates doesn't have a physical meaning.
error = (p2'.x - p2.x)2 + (p2'.y - p2.y)2, where p2' is the predicted location and p2 is the observed location.
| Constructor and Description |
|---|
DistanceHomographySq() |
| Modifier and Type | Method and Description |
|---|---|
double |
computeDistance(AssociatedPair pt) |
void |
computeDistance(java.util.List<AssociatedPair> points,
double[] distance) |
void |
setModel(georegression.struct.homography.Homography2D_F64 model) |
public void setModel(georegression.struct.homography.Homography2D_F64 model)
setModel in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,AssociatedPair>public double computeDistance(AssociatedPair pt)
computeDistance in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,AssociatedPair>public void computeDistance(java.util.List<AssociatedPair> points, double[] distance)
computeDistance in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,AssociatedPair>