public class SelfCalibrationLinearDualQuadratic extends SelfCalibrationBase
Computes intrinsic calibration matrix using the absolute dual quadratic, projective transforms, and by assuming different elements in the calibration matrix have a linear constraint. All camera parameters which are not constrained are allowed to vary from frame to frame. The solution is found by computing the null space of the constrained version of the system below:
w*i = Pi*Q*∞*PTi
On output, a list of intrinsic parameters is returned (fx,fy,skew) for every view which is provided. For a complete discussion of the theory see the auto calibration section of [1] with missing equations derived in [2].
Two types of constraints can be specified; zero skew and fixed aspect ratio. Zero principle point is a mandatory constraint. Zero skew is required if fixed aspect ratio is a constraint.
A check for sufficient geometric diversity is done by looking at singular values. The nullity should be one,
but if its more than one then there is too much ambiguity. The tolerance can be adjusted by changing the
singular threshold.
| Modifier and Type | Class and Description |
|---|---|
static class |
SelfCalibrationLinearDualQuadratic.Intrinsic |
SelfCalibrationBase.Projective| Constructor and Description |
|---|
SelfCalibrationLinearDualQuadratic(boolean zeroSkew)
Constructor for zero-principle point and (optional) zero-skew
|
SelfCalibrationLinearDualQuadratic(double aspectRatio)
Constructor for zero-principle point, zero-skew, and known fixed aspect ratio (fy/fx)
|
| Modifier and Type | Method and Description |
|---|---|
double |
getSingularThreshold() |
java.util.List<SelfCalibrationLinearDualQuadratic.Intrinsic> |
getSolutions() |
void |
setSingularThreshold(double singularThreshold) |
boofcv.alg.geo.GeometricResult |
solve()
Solve for camera calibration.
|
addProjective, addProjectives, computeW, encodeQ, getMinimumProjectivespublic SelfCalibrationLinearDualQuadratic(boolean zeroSkew)
zeroSkew - if true zero is assumed to be zeropublic SelfCalibrationLinearDualQuadratic(double aspectRatio)
aspectRatio - Specifies the known aspect ratio. fy/fxpublic boofcv.alg.geo.GeometricResult solve()
public double getSingularThreshold()
public void setSingularThreshold(double singularThreshold)
public java.util.List<SelfCalibrationLinearDualQuadratic.Intrinsic> getSolutions()