use of boofcv.abst.geo.trifocal.WrapTrifocalLinearPoint7 in project BoofCV by lessthanoptimal.
the class FactoryMultiView method estimateTrifocal_1.
/**
* Creates a trifocal tensor estimation algorithm.
*
* @param type Which algorithm.
* @param iterations If the algorithm is iterative, then this is the number of iterations. Try 200
* @return Trifocal tensor estimator
*/
public static Estimate1ofTrifocalTensor estimateTrifocal_1(EnumTrifocal type, int iterations) {
switch(type) {
case LINEAR_7:
return new WrapTrifocalLinearPoint7();
case ALGEBRAIC_7:
UnconstrainedLeastSquares optimizer = FactoryOptimization.leastSquaresLM(1e-3, false);
TrifocalAlgebraicPoint7 alg = new TrifocalAlgebraicPoint7(optimizer, iterations, 1e-12, 1e-12);
return new WrapTrifocalAlgebraicPoint7(alg);
}
throw new IllegalArgumentException("Unknown type " + type);
}
Aggregations