Package boofcv.alg.geo.robust
Class Se3FromEssentialGenerator
java.lang.Object
boofcv.alg.geo.robust.Se3FromEssentialGenerator
- All Implemented Interfaces:
ModelGenerator<Se3_F64,
AssociatedPair>
public class Se3FromEssentialGenerator
extends Object
implements ModelGenerator<Se3_F64,AssociatedPair>
Estimates the motion between two views up to a scale factor by computing an essential matrix,
decomposing it, and using the positive depth constraint to select the best candidate. The returned
motion is the motion from the first camera frame into the second camera frame.
-
Constructor Summary
ConstructorDescriptionSe3FromEssentialGenerator
(Estimate1ofEpipolar computeEssential, Triangulate2ViewsMetricH triangulate) Specifies how the essential matrix is computed -
Method Summary
Modifier and TypeMethodDescriptionboolean
generate
(List<AssociatedPair> dataSet, Se3_F64 model) Computes the camera motion from the set of observations.int
-
Constructor Details
-
Se3FromEssentialGenerator
public Se3FromEssentialGenerator(Estimate1ofEpipolar computeEssential, Triangulate2ViewsMetricH triangulate) Specifies how the essential matrix is computed- Parameters:
computeEssential
- Algorithm for computing the essential matrix
-
-
Method Details
-
generate
Computes the camera motion from the set of observations. The motion is from the first into the second camera frame.- Specified by:
generate
in interfaceModelGenerator<Se3_F64,
AssociatedPair> - Parameters:
dataSet
- Associated pairs in normalized camera coordinates.model
- The best pose according to the positive depth constraint.
-
getMinimumPoints
public int getMinimumPoints()- Specified by:
getMinimumPoints
in interfaceModelGenerator<Se3_F64,
AssociatedPair>
-