Package boofcv.alg.geo.robust
Class RansacProjective<Model,Point>
java.lang.Object
org.ddogleg.fitting.modelset.ransac.Ransac<Model,Point>
boofcv.alg.geo.robust.RansacProjective<Model,Point>
- All Implemented Interfaces:
ModelMatcherViews<Model,,Point, ElevateViewInfo> InlierThreshold,ModelMatcher<Model,,Point> ModelMatcherPost<Model,Point>
public class RansacProjective<Model,Point>
extends Ransac<Model,Point>
implements ModelMatcherViews<Model,Point,ElevateViewInfo>
RANSAC for dealing with projective geometry. Shape of input images is provided and that allows for proper
normalization / scaling of input data.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ddogleg.fitting.modelset.ransac.Ransac
Ransac.InitializeModels<Model extends Object,Point extends Object>, Ransac.TrialHelper -
Field Summary
Fields inherited from class org.ddogleg.fitting.modelset.ransac.Ransac
helper, initializeModels, masterModelManager, maxIterations, randSeed, sampleSize, thresholdFit, trialRNG -
Constructor Summary
ConstructorsConstructorDescriptionRansacProjective(long randSeed, ModelManager<Model> modelManager, ModelGeneratorViews<Model, Point, ElevateViewInfo> modelGenerator, DistanceFromModelViews<Model, Point, ElevateViewInfo> modelDistance, int maxIterations, double thresholdFit) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the new of views which need to be setvoidsetView(int view, ElevateViewInfo info) Specify parameters for a particular viewMethods inherited from class org.ddogleg.fitting.modelset.ransac.Ransac
addSelect, checkTrialGenerators, getFitQuality, getInputIndex, getMatchSet, getMaxIterations, getMinimumSize, getModelParameters, getModelType, getPointType, getThresholdFit, process, randomDraw, randomDraw, reset, setInitializeModels, setMaxIterations, setModel, setSampleSize, setThresholdFitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ddogleg.fitting.modelset.ModelMatcher
getFitQuality, getInputIndex, getMatchSet, getMinimumSize, getModelParameters, getModelType, getPointType, process, reset
-
Constructor Details
-
RansacProjective
public RansacProjective(long randSeed, ModelManager<Model> modelManager, ModelGeneratorViews<Model, Point, ElevateViewInfo> modelGenerator, DistanceFromModelViews<Model, Point, ElevateViewInfo> modelDistance, int maxIterations, double thresholdFit)
-
-
Method Details
-
setView
Description copied from interface:ModelMatcherViewsSpecify parameters for a particular view- Specified by:
setViewin interfaceModelMatcherViews<Model,Point, ElevateViewInfo> - Parameters:
view- which view this belongs toinfo- Information about this view. E.g. image dimension, intrinsic parameters, ...etc
-
getNumberOfViews
public int getNumberOfViews()Description copied from interface:ModelMatcherViewsReturns the new of views which need to be set- Specified by:
getNumberOfViewsin interfaceModelMatcherViews<Model,Point, ElevateViewInfo>
-