Package boofcv.alg.geo.robust
Class LeastMedianOfSquaresMultiView<Model,Point>
java.lang.Object
org.ddogleg.fitting.modelset.lmeds.LeastMedianOfSquares<Model,Point>
boofcv.alg.geo.robust.LeastMedianOfSquaresMultiView<Model,Point>
- All Implemented Interfaces:
ModelMatcherMultiview<Model,Point>
,InlierFraction
,ModelMatcher<Model,Point>
,ModelMatcherPost<Model,Point>
public class LeastMedianOfSquaresMultiView<Model,Point> extends LeastMedianOfSquares<Model,Point> implements ModelMatcherMultiview<Model,Point>
Extension of
Ransac
for two calibrated camera views. Input point will be in normalized image coordinates-
Nested Class Summary
Nested classes/interfaces inherited from class org.ddogleg.fitting.modelset.lmeds.LeastMedianOfSquares
LeastMedianOfSquares.TrialHelper
-
Field Summary
Fields inherited from class org.ddogleg.fitting.modelset.lmeds.LeastMedianOfSquares
bestMedian, errorFraction, helper, inlierFrac, inlierSet, matchToInput, maxMedianError, ModelManager, sampleSize, totalCycles, trialRNG
-
Constructor Summary
Constructors Constructor Description LeastMedianOfSquaresMultiView(long randSeed, int totalCycles, double maxMedianError, double inlierFraction, ModelManager<Model> modelManager, ModelGenerator<Model,Point> generator, DistanceFromModelMultiView<Model,Point> errorMetric)
LeastMedianOfSquaresMultiView(long randSeed, int totalCycles, ModelManager<Model> modelManager, ModelGenerator<Model,Point> generator, DistanceFromModelMultiView<Model,Point> errorMetric)
-
Method Summary
Modifier and Type Method Description int
getNumberOfViews()
Returns the new of views which need to be setvoid
setIntrinsic(int view, CameraPinhole intrinsic)
Specify intrinsic parameters for a particular viewMethods inherited from class org.ddogleg.fitting.modelset.lmeds.LeastMedianOfSquares
checkTrialGenerators, computeInlierSet, getErrorFraction, getFitQuality, getInputIndex, getMatchSet, getMinimumSize, getModelParameters, getModelType, getPointType, process, reset, setErrorFraction, setModel, setSampleSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ddogleg.fitting.modelset.ModelMatcher
getFitQuality, getInputIndex, getMatchSet, getMinimumSize, getModelParameters, getModelType, getPointType, process, reset
-
Constructor Details
-
LeastMedianOfSquaresMultiView
public LeastMedianOfSquaresMultiView(long randSeed, int totalCycles, double maxMedianError, double inlierFraction, ModelManager<Model> modelManager, ModelGenerator<Model,Point> generator, DistanceFromModelMultiView<Model,Point> errorMetric) -
LeastMedianOfSquaresMultiView
public LeastMedianOfSquaresMultiView(long randSeed, int totalCycles, ModelManager<Model> modelManager, ModelGenerator<Model,Point> generator, DistanceFromModelMultiView<Model,Point> errorMetric)
-
-
Method Details
-
setIntrinsic
Description copied from interface:ModelMatcherMultiview
Specify intrinsic parameters for a particular view- Specified by:
setIntrinsic
in interfaceModelMatcherMultiview<Model,Point>
- Parameters:
view
- which view this belongs tointrinsic
- intrinsic prameters that it should be set to
-
getNumberOfViews
public int getNumberOfViews()Description copied from interface:ModelMatcherMultiview
Returns the new of views which need to be set- Specified by:
getNumberOfViews
in interfaceModelMatcherMultiview<Model,Point>
-