private List<Pair<SceneView,SceneView>> imagesWithCommonFeatures(double n,List<SceneView> imgList){
  List<Pair<SceneView,SceneView>> images=new ArrayList<>();
  for (int i=0; i < imgList.size(); i++) {
    SceneView imgI=imgList.get(i);
    for (int j=0; j < imgList.size(); j++) {
      if (j > i) {
        SceneView imgJ=imgList.get(j);
        Collection<Feature> f=imgJ.getCommonFeatures(imgI);
        if (f.size() >= n) {
          images.add(new Pair<>(imgI,imgJ));
        }
      }
    }
  }
  return images;
}

private List < Pair < SceneView , SceneView > > imagesWithCommonFeatures ( double n , List < SceneView > imgList ) { List < Pair < SceneView , SceneView > > images = new ArrayList < > ( ) ; for ( int i = 0 ; i < imgList . size ( ) ; i ++ ) { SceneView imgI = imgList . get ( i ) ; for ( int j = 0 ; j < imgList . size ( ) ; j ++ ) { if ( j > i ) { SceneView imgJ = imgList . get ( j ) ; Collection < Feature > f = imgJ . getCommonFeatures ( imgI ) ; if ( f . size ( ) >= n ) { images . add ( new Pair < > ( imgI , imgJ ) ) ; } } } } return images ; }
returns list of pairs of images with common features
