public static RefineEpipolar fundamentalRefine ( double tol , int maxIterations , EpipolarError type ) { switch ( type ) { case SAMPSON : return new LeastSquaresFundamental ( tol , maxIterations , true ) ; case SIMPLE : return new LeastSquaresFundamental ( tol , maxIterations , false ) ; } throw new IllegalArgumentException ( "Type not supported: " + type ) ; }
Creates a non - linear optimizer for refining estimates of fundamental or essential matrices .