boofcv.alg.geo.robust
Class DistanceHomographyPixelSq
- java.lang.Object
-
- boofcv.alg.geo.robust.DistanceHomographyPixelSq
-
- All Implemented Interfaces:
- DistanceFromModel<Homography2D_F64,AssociatedPair>
public class DistanceHomographyPixelSq extends java.lang.Object implements DistanceFromModel<Homography2D_F64,AssociatedPair>
Computes the Euclidean error squared between 'p1' and 'p2' after projecting 'p1' into image 2. Input points must be in normalized image coordinates, but the output error will be in pixel coordinates.
-
-
Constructor Summary
Constructors Constructor and Description DistanceHomographyPixelSq()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecomputeDistance(AssociatedPair pt)Computes the distance the point is from the model.voidcomputeDistance(java.util.List<AssociatedPair> points, double[] distance)Computes the distance a set of points is from the model and saves the results in the provided array.voidsetIntrinsic(double cam2_fx, double cam2_fy, double cam2_skew)Specifies intrinsic parameters for camera 2.voidsetModel(Homography2D_F64 model)Sets the model parameters.
-
-
-
Method Detail
-
setIntrinsic
public void setIntrinsic(double cam2_fx, double cam2_fy, double cam2_skew)Specifies intrinsic parameters for camera 2.- Parameters:
cam2_fx- intrinsic parameter: focal length x for camera 2cam2_fy- intrinsic parameter: focal length y for camera 2cam2_skew- intrinsic parameter: skew for camera 2 (usually zero)
-
setModel
public void setModel(Homography2D_F64 model)
Description copied from interface:DistanceFromModelSets the model parameters.- Specified by:
setModelin interfaceDistanceFromModel<Homography2D_F64,AssociatedPair>- Parameters:
model- Model parameters.
-
computeDistance
public double computeDistance(AssociatedPair pt)
Description copied from interface:DistanceFromModelComputes the distance the point is from the model.- Specified by:
computeDistancein interfaceDistanceFromModel<Homography2D_F64,AssociatedPair>- Parameters:
pt- Point being evaluated. Not modified.- Returns:
- Distance the point is from the model.
-
computeDistance
public void computeDistance(java.util.List<AssociatedPair> points, double[] distance)
Description copied from interface:DistanceFromModelComputes the distance a set of points is from the model and saves the results in the provided array.- Specified by:
computeDistancein interfaceDistanceFromModel<Homography2D_F64,AssociatedPair>- Parameters:
points- Set of points which are to be evaluated.distance- Where model distance is stored.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG