public class PolynomialModel2D extends AbstractModel<PolynomialModel2D>
NonLinearTransform and the AbstractAffineModel2D
to which it is regularized.cost, rnd| Constructor and Description |
|---|
PolynomialModel2D() |
| Modifier and Type | Method and Description |
|---|---|
double[] |
apply(double[] location)
Apply the
CoordinateTransform to a location. |
void |
applyInPlace(double[] location)
Apply the
CoordinateTransform to a location. |
PolynomialModel2D |
copy()
Clone the model.
|
<P extends PointMatch> |
fit(Collection<P> pointMatches)
Fit the
Model to a set of data points minimizing the global
transfer error. |
AbstractAffineModel2D<?> |
getAffine() |
float |
getLambda() |
int |
getMinNumMatches() |
int |
getOrder() |
void |
set(PolynomialModel2D m)
Set the model to m
|
void |
setAffine(AbstractAffineModel2D<?> affine) |
void |
setAffine(Class<? extends AbstractAffineModel2D<?>> affineClass) |
void |
setLambda(float lambda) |
void |
setOrder(int order) |
String |
toString() |
betterThan, filter, filter, filter, filterRansac, filterRansac, filterRansac, filterRansac, fit, fit, getCost, icp, localSmoothnessFilter, ransac, ransac, setCost, test, testpublic AbstractAffineModel2D<?> getAffine()
public void setAffine(AbstractAffineModel2D<?> affine)
public void setAffine(Class<? extends AbstractAffineModel2D<?>> affineClass) throws Exception
Exceptionpublic int getOrder()
public void setOrder(int order)
public float getLambda()
public void setLambda(float lambda)
public PolynomialModel2D copy()
Modelpublic <P extends PointMatch> void fit(Collection<P> pointMatches) throws NotEnoughDataPointsException, IllDefinedDataPointsException
ModelModel to a set of data points minimizing the global
transfer error. This is assumed to be implemented as a weighted least
squares minimization. Use ransac
and/ or Model.filter(java.util.Collection<P>, java.util.Collection<P>, double, int) to remove outliers from your data points.
The estimated model transfers match.p1.local to match.p2.world.
pointMatches - set of point correpondencesNotEnoughDataPointsException - if matches does not contain
enough data pointsIllDefinedDataPointsException - if the set of data points is
inappropriate to solve the Modelpublic int getMinNumMatches()
PointMatches required
to solve the model.public void set(PolynomialModel2D m)
Modelpublic double[] apply(double[] location)
CoordinateTransformCoordinateTransform to a location.public void applyInPlace(double[] location)
CoordinateTransformCoordinateTransform to a location.Copyright © 2015–2021 Fiji. All rights reserved.