public class EpipolarMinimizeGeometricError
extends java.lang.Object
Page 318 in: R. Hartley, and A. Zisserman, "Multiple View Geometry in Computer Vision", 2nd Ed, Cambridge 2003
| Constructor and Description |
|---|
EpipolarMinimizeGeometricError() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
process(org.ejml.data.DMatrixRMaj F21,
double x1,
double y1,
double x2,
double y2,
georegression.struct.point.Point2D_F64 p1,
georegression.struct.point.Point2D_F64 p2)
Minimizes the geometric error
|
boolean |
solvePolynomial(double f1,
double f2,
double a,
java.lang.Double b,
double c,
double d)
Solves for the roots of an ugly polynomial defined in 12.7 in book [1]
Coefficients found using Sage Math
a,b,c,d,f1,f2,t = var('a,b,c,d,f1,f2,t')
g = t*((a*t+b)^2 + f2^2*(c*t+d)^2)^2 - (a*d-b*c)*(1+f1^2*t^2)^2*(a*t+b)*(c*t+d)
g.expand().collect(t)
|
public boolean process(org.ejml.data.DMatrixRMaj F21,
double x1,
double y1,
double x2,
double y2,
georegression.struct.point.Point2D_F64 p1,
georegression.struct.point.Point2D_F64 p2)
F21 - (Input) Fundamental matrix x2 * F21 * x1 == 0x1 - (Input) Point 1 x-coordinate. Pixelsy1 - (Input) Point 1 y-coordinate. Pixelsx2 - (Input) Point 2 x-coordinate. Pixelsy2 - (Input) Point 2 y-coordinate. Pixelsp1 - (Output) Point 1. Pixelsp2 - (Output) Point 2. Pixelspublic boolean solvePolynomial(double f1,
double f2,
double a,
java.lang.Double b,
double c,
double d)
a,b,c,d,f1,f2,t = var('a,b,c,d,f1,f2,t')
g = t*((a*t+b)^2 + f2^2*(c*t+d)^2)^2 - (a*d-b*c)*(1+f1^2*t^2)^2*(a*t+b)*(c*t+d)
g.expand().collect(t)