boofcv.alg.geo.pose
Class PnPStereoEstimator
- java.lang.Object
-
- boofcv.alg.geo.pose.PnPStereoEstimator
-
- All Implemented Interfaces:
- GeoModelEstimator1<Se3_F64,Stereo2D3D>
public class PnPStereoEstimator extends java.lang.Object implements GeoModelEstimator1<Se3_F64,Stereo2D3D>
Computes the left camera pose from a fully calibrated stereo camera system using a PnP algorithm. Observations from the left camera are used to solve the PnP problem while observations from the right camera are used to select the best solution if its ambiguous. Observations past the minimum number are used just for selecting the best hypothesis.
-
-
Constructor Summary
Constructors Constructor and Description PnPStereoEstimator(GeoModelEstimatorN<Se3_F64,Point2D3D> alg, DistanceFromModel<Se3_F64,Point2D3D> distance, int extraForTest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetMinimumPoints()Minimum number of points required to estimate the model.booleanprocess(java.util.List<Stereo2D3D> points, Se3_F64 estimatedModel)Estimates the model given a set of observations.voidsetLeftToRight(Se3_F64 leftToRight)
-
-
-
Constructor Detail
-
PnPStereoEstimator
public PnPStereoEstimator(GeoModelEstimatorN<Se3_F64,Point2D3D> alg, DistanceFromModel<Se3_F64,Point2D3D> distance, int extraForTest)
- Parameters:
alg-distance-extraForTest- Right camera is used so zero is the minimum number
-
-
Method Detail
-
setLeftToRight
public void setLeftToRight(Se3_F64 leftToRight)
-
process
public boolean process(java.util.List<Stereo2D3D> points, Se3_F64 estimatedModel)
Description copied from interface:GeoModelEstimator1Estimates the model given a set of observations.- Specified by:
processin interfaceGeoModelEstimator1<Se3_F64,Stereo2D3D>- Parameters:
points- Input: Set of observations. Not modified.estimatedModel- Output: Storage for the estimated model. Modified.- Returns:
- true if successful
-
getMinimumPoints
public int getMinimumPoints()
Description copied from interface:GeoModelEstimator1Minimum number of points required to estimate the model.- Specified by:
getMinimumPointsin interfaceGeoModelEstimator1<Se3_F64,Stereo2D3D>- Returns:
- Minimum number of points.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG