Package boofcv.alg.geo.robust
Class DistanceSe3SymmetricSqPointing
java.lang.Object
boofcv.alg.geo.robust.DistanceSe3SymmetricSqPointing
- All Implemented Interfaces:
DistanceFromModelMultiView2<Se3_F64,
,AssociatedPair3D> DistanceFromModel<Se3_F64,
AssociatedPair3D>
public class DistanceSe3SymmetricSqPointing
extends Object
implements DistanceFromModelMultiView2<Se3_F64,AssociatedPair3D>
Computes the error for a given camera motion from two calibrated views. Same as DistanceSe3SymmetricSq
except that it takes in observations as pointing vectors.
-
Constructor Summary
ConstructorDescriptionDistanceSe3SymmetricSqPointing
(Triangulate2PointingMetricH triangulator) Configure distance calculation. -
Method Summary
Modifier and TypeMethodDescriptiondouble
distance
(AssociatedPair3D obs) Computes the error given the motion modelvoid
distances
(List<AssociatedPair3D> associatedPairs, double[] distance) int
void
setDistortion
(int view, Point3Transform2_F64 intrinsic) void
-
Constructor Details
-
DistanceSe3SymmetricSqPointing
Configure distance calculation.- Parameters:
triangulator
- Triangulates the intersection of two observations
-
-
Method Details
-
setModel
- Specified by:
setModel
in interfaceDistanceFromModel<Se3_F64,
AssociatedPair3D>
-
distance
Computes the error given the motion model- Specified by:
distance
in interfaceDistanceFromModel<Se3_F64,
AssociatedPair3D> - Parameters:
obs
- Observation in normalized pixel coordinates- Returns:
- observation error
-
distances
- Specified by:
distances
in interfaceDistanceFromModel<Se3_F64,
AssociatedPair3D>
-
getPointType
- Specified by:
getPointType
in interfaceDistanceFromModel<Se3_F64,
AssociatedPair3D>
-
getModelType
- Specified by:
getModelType
in interfaceDistanceFromModel<Se3_F64,
AssociatedPair3D>
-
setDistortion
- Specified by:
setDistortion
in interfaceDistanceFromModelMultiView2<Se3_F64,
AssociatedPair3D>
-
getNumberOfViews
public int getNumberOfViews()- Specified by:
getNumberOfViews
in interfaceDistanceFromModelMultiView2<Se3_F64,
AssociatedPair3D>
-