Search in sources :

Example 1 with WrapTrifocalLinearPoint7

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);
}
Also used : WrapTrifocalAlgebraicPoint7(boofcv.abst.geo.trifocal.WrapTrifocalAlgebraicPoint7) TrifocalAlgebraicPoint7(boofcv.alg.geo.trifocal.TrifocalAlgebraicPoint7) WrapTrifocalAlgebraicPoint7(boofcv.abst.geo.trifocal.WrapTrifocalAlgebraicPoint7) UnconstrainedLeastSquares(org.ddogleg.optimization.UnconstrainedLeastSquares) WrapTrifocalLinearPoint7(boofcv.abst.geo.trifocal.WrapTrifocalLinearPoint7)

Aggregations

WrapTrifocalAlgebraicPoint7 (boofcv.abst.geo.trifocal.WrapTrifocalAlgebraicPoint7)1 WrapTrifocalLinearPoint7 (boofcv.abst.geo.trifocal.WrapTrifocalLinearPoint7)1 TrifocalAlgebraicPoint7 (boofcv.alg.geo.trifocal.TrifocalAlgebraicPoint7)1 UnconstrainedLeastSquares (org.ddogleg.optimization.UnconstrainedLeastSquares)1