final RANSAC<Point2d, Point2d, HomographyModel> modelFitting = new RANSAC<Point2d, Point2d, HomographyModel>( model, new SingleImageTransferResidual2d<HomographyModel>(), 8.0, 1600, new RANSAC.BestFitStoppingCondition(), true); matcher.setFittingModel(modelFitting);
final RANSAC<Point2d, Point2d, HomographyModel> modelFitting = new RANSAC<Point2d, Point2d, HomographyModel>( model, new SingleImageTransferResidual2d<HomographyModel>(), 8.0, 1600, new RANSAC.BestFitStoppingCondition(), true); matcher.setFittingModel(modelFitting);
final RANSAC<Point2d, Point2d, HomographyModel> ransac = new RANSAC<Point2d, Point2d, HomographyModel>(model, new SingleImageTransferResidual2d<HomographyModel>(), 12.0, 600, new RANSAC.BestFitStoppingCondition(), true); final ConsistentLocalFeatureMatcher2d<Keypoint> matcher = new ConsistentLocalFeatureMatcher2d<Keypoint>( new FastBasicKeypointMatcher<Keypoint>(8));
final RANSAC<Point2d, Point2d, HomographyModel> ransac = new RANSAC<Point2d, Point2d, HomographyModel>(model, new SingleImageTransferResidual2d<HomographyModel>(), 12.0, 600, new RANSAC.BestFitStoppingCondition(), true); final ConsistentLocalFeatureMatcher2d<Keypoint> matcher = new ConsistentLocalFeatureMatcher2d<Keypoint>( new FastBasicKeypointMatcher<Keypoint>(8));
new RANSAC<Point2d, Point2d, HomographyModel>(model, new SingleImageTransferResidual2d<HomographyModel>(), 8.0, 1600, new RANSAC.BestFitStoppingCondition(), true); matcher.setFittingModel(modelFitting); matcher.setModelFeatures(middleKP);
final SingleImageTransferResidual2d<HomographyModel> errorModel = new SingleImageTransferResidual2d<HomographyModel>(); final RANSAC<Point2d, Point2d, HomographyModel> ransac = new RANSAC<Point2d, Point2d, HomographyModel>(model, errorModel, 5f, 1500, new RANSAC.BestFitStoppingCondition(), true); final ConsistentLocalFeatureMatcher2d<Keypoint> matcher = new ConsistentLocalFeatureMatcher2d<Keypoint>( new FastBasicKeypointMatcher<Keypoint>(8));
final SingleImageTransferResidual2d<HomographyModel> errorModel = new SingleImageTransferResidual2d<HomographyModel>(); final RANSAC<Point2d, Point2d, HomographyModel> ransac = new RANSAC<Point2d, Point2d, HomographyModel>(model, errorModel, 5f, 1500, new RANSAC.BestFitStoppingCondition(), true); final ConsistentLocalFeatureMatcher2d<Keypoint> matcher = new ConsistentLocalFeatureMatcher2d<Keypoint>( new FastBasicKeypointMatcher<Keypoint>(8));
/** * @return a matcher with a homographic constraint */ private static LocalFeatureMatcher<Keypoint> createConsistentRANSACHomographyMatcher() { final ConsistentLocalFeatureMatcher2d<Keypoint> matcher = new ConsistentLocalFeatureMatcher2d<Keypoint>( createFastBasicMatcher()); matcher.setFittingModel(new RobustHomographyEstimator(10.0, 1000, new RANSAC.BestFitStoppingCondition(), HomographyRefinement.NONE)); return matcher; }