Package boofcv.factory.geo
Class FactoryMultiViewRobust
- java.lang.Object
-
- boofcv.factory.geo.FactoryMultiViewRobust
-
public class FactoryMultiViewRobust extends java.lang.ObjectFactory for creating robust false-positive tolerant estimation algorithms in multi-view geometry. These algorithms tend to have a lot of boilerplate associated with them and the goal of this factory is to make their use much easier and less error prone.
-
-
Constructor Summary
Constructors Constructor Description FactoryMultiViewRobust()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelMatcherMultiview<georegression.struct.se.Se3_F64,AssociatedPair>baselineLMedS(ConfigEssential essential, ConfigLMedS lmeds)Robust solution for estimatingSe3_F64using epipolar geometry from two views withLMedS.static ModelMatcherMultiview<georegression.struct.se.Se3_F64,AssociatedPair>baselineRansac(ConfigEssential essential, ConfigRansac ransac)Robust solution for estimating the stereo baselineSe3_F64using epipolar geometry from two views withRansacMultiView.static ModelMatcherMultiview<org.ejml.data.DMatrixRMaj,AssociatedPair>essentialRansac(ConfigEssential essential, ConfigRansac ransac)static org.ddogleg.fitting.modelset.ModelMatcher<org.ejml.data.DMatrixRMaj,AssociatedPair>fundamentalLMedS(ConfigFundamental fundamental, ConfigLMedS lmeds)static org.ddogleg.fitting.modelset.ModelMatcher<org.ejml.data.DMatrixRMaj,AssociatedPair>fundamentalRansac(ConfigFundamental fundamental, ConfigRansac ransac)static RansacMultiView<georegression.struct.homography.Homography2D_F64,AssociatedPair>homographyCalibratedRansac(ConfigRansac ransac)Estimates a homography from normalized image coordinates but computes the error in pixel coordinatesstatic org.ddogleg.fitting.modelset.lmeds.LeastMedianOfSquares<georegression.struct.homography.Homography2D_F64,AssociatedPair>homographyLMedS(ConfigHomography homography, ConfigLMedS configLMedS)Robust solution for estimatingHomography2D_F64withLMedS.static org.ddogleg.fitting.modelset.ransac.Ransac<georegression.struct.homography.Homography2D_F64,AssociatedPair>homographyRansac(ConfigHomography homography, ConfigRansac ransac)Robust solution for estimatingHomography2D_F64withRansac.static ModelMatcherMultiview<georegression.struct.se.Se3_F64,Point2D3D>pnpLMedS(ConfigPnP configPnP, ConfigLMedS configLMedS)Robust solution to PnP problem usingLMedS.static ModelMatcherMultiview<georegression.struct.se.Se3_F64,Point2D3D>pnpRansac(ConfigPnP pnp, ConfigRansac ransac)Robust solution to PnP problem usingRansac.static org.ddogleg.fitting.modelset.ransac.Ransac<TrifocalTensor,AssociatedTriple>trifocalRansac(ConfigTrifocal trifocal, ConfigTrifocalError error, ConfigRansac ransac)Robust RANSAC based estimator for
-
-
-
Method Detail
-
pnpLMedS
public static ModelMatcherMultiview<georegression.struct.se.Se3_F64,Point2D3D> pnpLMedS(@Nullable ConfigPnP configPnP, @Nonnull ConfigLMedS configLMedS)
Robust solution to PnP problem usingLMedS. Input observations are in normalized image coordinates.- Input observations are in normalized image coordinates NOT pixels
- Error units are pixels squared.
See code for all the details.
- Parameters:
configPnP- PnP parameters. Can't be null.configLMedS- Parameters for LMedS. Can't be null.- Returns:
- Robust Se3_F64 estimator
-
pnpRansac
public static ModelMatcherMultiview<georegression.struct.se.Se3_F64,Point2D3D> pnpRansac(@Nullable ConfigPnP pnp, @Nonnull ConfigRansac ransac)
Robust solution to PnP problem usingRansac. Input observations are in normalized image coordinates. Found transform is from world to camera.NOTE: Observations are in normalized image coordinates NOT pixels.
See code for all the details.
- Parameters:
pnp- PnP parameters. Can't be null.ransac- Parameters for RANSAC. Can't be null.- Returns:
- Robust Se3_F64 estimator
- See Also:
Estimate1ofPnP
-
baselineLMedS
public static ModelMatcherMultiview<georegression.struct.se.Se3_F64,AssociatedPair> baselineLMedS(@Nullable ConfigEssential essential, @Nonnull ConfigLMedS lmeds)
Robust solution for estimatingSe3_F64using epipolar geometry from two views withLMedS. Input observations are in normalized image coordinates.- Error units is pixels squared times two
See code for all the details.
- Parameters:
essential- Essential matrix estimation parameters. Can't be null.lmeds- Parameters for RANSAC. Can't be null.- Returns:
- Robust Se3_F64 estimator
-
fundamentalLMedS
public static org.ddogleg.fitting.modelset.ModelMatcher<org.ejml.data.DMatrixRMaj,AssociatedPair> fundamentalLMedS(@Nonnull ConfigFundamental fundamental, @Nonnull ConfigLMedS lmeds)
-
baselineRansac
public static ModelMatcherMultiview<georegression.struct.se.Se3_F64,AssociatedPair> baselineRansac(@Nullable ConfigEssential essential, @Nonnull ConfigRansac ransac)
Robust solution for estimating the stereo baselineSe3_F64using epipolar geometry from two views withRansacMultiView. Input observations are in normalized image coordinates.See code for all the details.
- Parameters:
essential- Essential matrix estimation parameters.ransac- Parameters for RANSAC. Can't be null.- Returns:
- Robust Se3_F64 estimator
-
essentialRansac
public static ModelMatcherMultiview<org.ejml.data.DMatrixRMaj,AssociatedPair> essentialRansac(@Nullable ConfigEssential essential, @Nonnull ConfigRansac ransac)
-
fundamentalRansac
public static org.ddogleg.fitting.modelset.ModelMatcher<org.ejml.data.DMatrixRMaj,AssociatedPair> fundamentalRansac(@Nonnull ConfigFundamental fundamental, @Nonnull ConfigRansac ransac)
-
homographyLMedS
public static org.ddogleg.fitting.modelset.lmeds.LeastMedianOfSquares<georegression.struct.homography.Homography2D_F64,AssociatedPair> homographyLMedS(@Nullable ConfigHomography homography, @Nonnull ConfigLMedS configLMedS)
Robust solution for estimatingHomography2D_F64withLMedS. Input observations are in pixel coordinates.- Four point linear is used internally
- inlierThreshold is in pixels
See code for all the details.
- Parameters:
homography- Homography estimation parameters. If null default is used.configLMedS- Parameters for LMedS. Can't be null.- Returns:
- Homography estimator
-
homographyRansac
public static org.ddogleg.fitting.modelset.ransac.Ransac<georegression.struct.homography.Homography2D_F64,AssociatedPair> homographyRansac(@Nullable ConfigHomography homography, @Nonnull ConfigRansac ransac)
Robust solution for estimatingHomography2D_F64withRansac. Input observations are in pixel coordinates.- Four point linear is used internally
- inlierThreshold is in pixels
See code for all the details.
- Parameters:
homography- Homography estimation parameters. If null default is used.ransac- Parameters for RANSAC. Can't be null.- Returns:
- Homography estimator
-
homographyCalibratedRansac
public static RansacMultiView<georegression.struct.homography.Homography2D_F64,AssociatedPair> homographyCalibratedRansac(@Nonnull ConfigRansac ransac)
Estimates a homography from normalized image coordinates but computes the error in pixel coordinates- Parameters:
ransac- RANSAC configuration- Returns:
- Ransac
- See Also:
GenerateHomographyLinear,DistanceHomographyCalibratedSq
-
trifocalRansac
public static org.ddogleg.fitting.modelset.ransac.Ransac<TrifocalTensor,AssociatedTriple> trifocalRansac(@Nullable ConfigTrifocal trifocal, @Nullable ConfigTrifocalError error, @Nonnull ConfigRansac ransac)
Robust RANSAC based estimator for- Parameters:
trifocal- Configuration for trifocal tensor calculationerror- Configuration for how trifocal error is computedransac- Configuration for RANSAC- Returns:
- RANSAC
- See Also:
FactoryMultiView.trifocal_1(boofcv.factory.geo.ConfigTrifocal)
-
-