Class FactoryMultiViewRobust


  • public class FactoryMultiViewRobust
    extends java.lang.Object
    Factory 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 Detail

      • FactoryMultiViewRobust

        public FactoryMultiViewRobust()
    • Method Detail

      • pnpLMedS

        public static ModelMatcherMultiview<georegression.struct.se.Se3_F64,​Point2D3D> pnpLMedS​(@Nullable
                                                                                                      ConfigPnP configPnP,
                                                                                                      @Nonnull
                                                                                                      ConfigLMedS configLMedS)
        Robust solution to PnP problem using LMedS. 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 using Ransac. 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 estimating Se3_F64 using epipolar geometry from two views with LMedS. 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 baseline Se3_F64 using epipolar geometry from two views with RansacMultiView. 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
      • 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 estimating Homography2D_F64 with LMedS. 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 estimating Homography2D_F64 with Ransac. 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