Package boofcv.alg.geo.robust
Class Se3FromEssentialGenerator
- java.lang.Object
-
- boofcv.alg.geo.robust.Se3FromEssentialGenerator
-
- All Implemented Interfaces:
org.ddogleg.fitting.modelset.ModelGenerator<georegression.struct.se.Se3_F64,AssociatedPair>
public class Se3FromEssentialGenerator extends java.lang.Object implements org.ddogleg.fitting.modelset.ModelGenerator<georegression.struct.se.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
Constructors Constructor Description Se3FromEssentialGenerator(Estimate1ofEpipolar computeEssential, Triangulate2ViewsMetric triangulate)Specifies how the essential matrix is computed
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangenerate(java.util.List<AssociatedPair> dataSet, georegression.struct.se.Se3_F64 model)Computes the camera motion from the set of observations.intgetMinimumPoints()
-
-
-
Constructor Detail
-
Se3FromEssentialGenerator
public Se3FromEssentialGenerator(Estimate1ofEpipolar computeEssential, Triangulate2ViewsMetric triangulate)
Specifies how the essential matrix is computed- Parameters:
computeEssential- Algorithm for computing the essential matrix
-
-
Method Detail
-
generate
public boolean generate(java.util.List<AssociatedPair> dataSet, georegression.struct.se.Se3_F64 model)
Computes the camera motion from the set of observations. The motion is from the first into the second camera frame.- Specified by:
generatein interfaceorg.ddogleg.fitting.modelset.ModelGenerator<georegression.struct.se.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:
getMinimumPointsin interfaceorg.ddogleg.fitting.modelset.ModelGenerator<georegression.struct.se.Se3_F64,AssociatedPair>
-
-