public class InterpolatedModel<A extends Model<A>,B extends Model<B>,M extends InterpolatedModel<A,B,M>> extends AbstractModel<M>
| Modifier and Type | Field and Description |
|---|---|
protected A |
a |
protected B |
b |
protected double |
l1 |
protected double |
lambda |
cost, rnd| Constructor and Description |
|---|
InterpolatedModel(A a,
B b,
double lambda) |
| 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. |
M |
copy()
Clone the model.
|
<P extends PointMatch> |
fit(Collection<P> matches)
Fit the
Model to a set of data points minimizing the global
transfer error. |
A |
getA() |
B |
getB() |
double |
getLambda() |
int |
getMinNumMatches() |
void |
set(M m)
Set the model to m
|
void |
setLambda(double lambda) |
betterThan, filter, filter, filter, filterRansac, filterRansac, filterRansac, filterRansac, fit, fit, getCost, icp, localSmoothnessFilter, ransac, ransac, setCost, test, testpublic A getA()
public B getB()
public double getLambda()
public void setLambda(double lambda)
public int getMinNumMatches()
PointMatches required
to solve the model.public <P extends PointMatch> void fit(Collection<P> matches) 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.
matches - set of point correpondencesNotEnoughDataPointsException - if matches does not contain
enough data pointsIllDefinedDataPointsException - if the set of data points is
inappropriate to solve the 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.