public enum FundamentalRefinement extends Enum<FundamentalRefinement>
Modifier and Type | Class and Description |
---|---|
protected static class |
FundamentalRefinement.Base |
protected static class |
FundamentalRefinement.F12Epipolar
Based on the following matlab:
|
protected static class |
FundamentalRefinement.F12Sampson
Based on the following matlab:
|
protected static class |
FundamentalRefinement.F13Epipolar
Based on the following matlab:
|
protected static class |
FundamentalRefinement.F13Sampson
Based on the following matlab:
|
protected static class |
FundamentalRefinement.F23Epipolar
Based on the following matlab:
|
protected static class |
FundamentalRefinement.F23Sampson
Based on the following matlab:
|
protected static class |
FundamentalRefinement.FastSolveNormal3x2 |
protected static class |
FundamentalRefinement.Parameterisation
Parameterisations of the fundamental matrix that preserve the rank-2
constraint by writing one of the rows as a weighted combination of the
other two.
|
Enum Constant and Description |
---|
EPIPOLAR
Minimise the symmetric epipolar distance
|
NONE
Don't perform any refinement and just return the initial input matrix
|
SAMPSON
Minimise the Sampson distance (the first-order estimate of geometric
error)
|
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.commons.math3.fitting.leastsquares.MultivariateJacobianFunction |
getFunctions(List<? extends IndependentPair<? extends Point2d,? extends Point2d>> data,
FundamentalRefinement.Parameterisation p) |
Jama.Matrix |
refine(Jama.Matrix initial,
List<? extends IndependentPair<? extends Point2d,? extends Point2d>> data)
Refine an initial guess at the homography that takes the first points in
data to the second using non-linear Levenberg Marquardt optimisation.
|
static FundamentalRefinement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FundamentalRefinement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FundamentalRefinement NONE
public static final FundamentalRefinement EPIPOLAR
public static final FundamentalRefinement SAMPSON
public static FundamentalRefinement[] values()
for (FundamentalRefinement c : FundamentalRefinement.values()) System.out.println(c);
public static FundamentalRefinement valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract org.apache.commons.math3.fitting.leastsquares.MultivariateJacobianFunction getFunctions(List<? extends IndependentPair<? extends Point2d,? extends Point2d>> data, FundamentalRefinement.Parameterisation p)
public Jama.Matrix refine(Jama.Matrix initial, List<? extends IndependentPair<? extends Point2d,? extends Point2d>> data)
TransformUtilities.homographyMatrixNorm(List)
).initial
- the initial estimate (probably from the DLT technique)data
- the pairs of data points