org.openimaj.math.geometry.transforms

## Class FundamentalRefinement.FastSolveNormal3x2

• java.lang.Object
• org.openimaj.math.geometry.transforms.FundamentalRefinement.FastSolveNormal3x2
• Enclosing class:
FundamentalRefinement

```protected static class FundamentalRefinement.FastSolveNormal3x2
extends Object```
• ### Constructor Summary

Constructors
Modifier Constructor and Description
`protected ` `FastSolveNormal3x2()`
• ### Method Summary

All Methods
Modifier and Type Method and Description
`protected static FundamentalRefinement.FastSolveNormal3x2` ```solve(double[] r1, double[] r2, double[] r3)```
Solve the over-determined system [r1 r2]x = [r3] where r1, r2 and r3 are 3-dimensional column vectors and x is a 2 dimensional column vector x=[r; s].
• ### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Constructor Detail

• #### FastSolveNormal3x2

`protected FastSolveNormal3x2()`
• ### Method Detail

• #### solve

```protected static FundamentalRefinement.FastSolveNormal3x2 solve(double[] r1,
double[] r2,
double[] r3)```
Solve the over-determined system [r1 r2]x = [r3] where r1, r2 and r3 are 3-dimensional column vectors and x is a 2 dimensional column vector x=[r; s]. Least-squares solution is found by solving the normal equations x=(A^T * A)^-1 *(A^T * b) where [r1 r2]=A and b=r3.
Parameters:
`r1` - vector 1
`r2` - vector 2
`r3` - vector 3
Returns:
the solution