Class FastAffineModel1D
java.lang.Object
mpicbg.models.AbstractModel<mpicbg.models.AffineModel1D>
mpicbg.models.AbstractAffineModel1D<mpicbg.models.AffineModel1D>
mpicbg.models.AffineModel1D
net.preibisch.mvrecon.process.fusion.intensity.mpicbg.FastAffineModel1D
- All Implemented Interfaces:
Serializable,mpicbg.models.Affine1D<mpicbg.models.AffineModel1D>,mpicbg.models.Boundable,mpicbg.models.CoordinateTransform,mpicbg.models.InverseBoundable,mpicbg.models.InverseCoordinateTransform,mpicbg.models.InvertibleBoundable,mpicbg.models.InvertibleCoordinateTransform,mpicbg.models.Model<mpicbg.models.AffineModel1D>
- See Also:
-
Field Summary
Fields inherited from class mpicbg.models.AffineModel1D
i00, i01, isInvertible, m00, m01, MIN_NUM_MATCHESFields inherited from class mpicbg.models.AbstractModel
cost, rnd -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleapply(double l) copy()fastFilterRansac(FlattenedMatches candidates, int iterations, double maxEpsilon, double minInlierRatio, int minNumInliers, double maxTrust) Estimate aAffineModel1Dfrom a set with many outliers by first filtering the worst outliers with RANSAC and filter potential outliers by robust iterative regression.voidfit(FlattenedMatches matches) Methods inherited from class mpicbg.models.AffineModel1D
apply, applyInPlace, applyInverse, applyInverseInPlace, concatenate, createInverse, fit, fit, fit, getMatrix, getMinNumMatches, invert, preConcatenate, reset, set, set, set, toArray, toMatrix, toStringMethods inherited from class mpicbg.models.AbstractAffineModel1D
estimateBounds, estimateInverseBoundsMethods inherited from class mpicbg.models.AbstractModel
betterThan, filter, filter, filter, filterRansac, filterRansac, filterRansac, filterRansac, getCost, icp, localSmoothnessFilter, ransac, ransac, setCost, test, testMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mpicbg.models.Boundable
estimateBoundsMethods inherited from interface mpicbg.models.InverseBoundable
estimateInverseBounds
-
Constructor Details
-
FastAffineModel1D
public FastAffineModel1D()
-
-
Method Details
-
copy
- Specified by:
copyin interfacempicbg.models.Model<mpicbg.models.AffineModel1D>- Overrides:
copyin classmpicbg.models.AffineModel1D
-
fit
public void fit(FlattenedMatches matches) throws mpicbg.models.NotEnoughDataPointsException, mpicbg.models.IllDefinedDataPointsException -
fastFilterRansac
public MatchIndices fastFilterRansac(FlattenedMatches candidates, int iterations, double maxEpsilon, double minInlierRatio, int minNumInliers, double maxTrust) throws mpicbg.models.NotEnoughDataPointsException Estimate aAffineModel1Dfrom a set with many outliers by first filtering the worst outliers with RANSAC and filter potential outliers by robust iterative regression.- Parameters:
candidates- candidate data points including (many) outliersiterations- number of RANSAC iterationsmaxEpsilon- maximal allowed transfer errorminInlierRatio- minimal number of inliers to number of candidatesminNumInliers- minimally required absolute number of inliersmaxTrust- reject candidates with a cost larger than maxTrust * median cost- Returns:
- indices of
candidatesthat are inliers, ornullif the model could not be fitted (this model remains unchanged in that case). - Throws:
mpicbg.models.NotEnoughDataPointsException
-
apply
public double apply(double l)
-