code: 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);
  	}
docs: Creates a non-linear optimizer for refining estimates of fundamental or essential matrices.
  
  @see boofcv.alg.geo.f.FundamentalResidualSampson
  @see boofcv.alg.geo.f.FundamentalResidualSimple
  
  @param tol Tolerance for convergence.  Try 1e-8
  @param maxIterations Maximum number of iterations it will perform.  Try 100 or more.
  @return RefineEpipolar