code: private int[] selectBestPair( SceneStructureMetric structure ) {
  		Se3_F64 w_to_0 = structure.views[0].worldToView;
  		Se3_F64 w_to_1 = structure.views[1].worldToView;
  		Se3_F64 w_to_2 = structure.views[2].worldToView;
  
  		Se3_F64 view0_to_1 = w_to_0.invert(null).concat(w_to_1,null);
  		Se3_F64 view0_to_2 = w_to_0.invert(null).concat(w_to_2,null);
  		Se3_F64 view1_to_2 = w_to_1.invert(null).concat(w_to_2,null);
  
  		Se3_F64 candidates[] = new Se3_F64[]{view0_to_1,view0_to_2,view1_to_2};
  
  		int best = -1;
  		double bestScore = Double.MAX_VALUE;
  		for (int i = 0; i < candidates.length; i++) {
  			double s = score(candidates[i]);
  			System.out.println("stereo score["+i+"] = "+s);
  			if( s < bestScore ) {
  				bestScore = s;
  				best = i;
  			}
  		}
  
  		switch (best) {
  			case 0: return new int[]{0,1};
  			case 1: return new int[]{0,2};
  			case 2: return new int[]{1,2};
  		}
  		throw new RuntimeException("BUG!");
  	}
docs: Select two views which are the closest to an idea stereo pair. Little rotation and little translation along
  z-axis