Use Euclidean distance in SURF
In my code I'm filtering the good images based on the nearest neigbour distance ratio, as follows: for(int i = 0; i < min(des_image.rows-1,(int) matches.size()); i++) { if((matches[i][0].distance < 0.6*(matches[i][1].distance)) && ((int)matches[i].size()<=2 && (int)matches[i].size()>0)) { good_matches.push_back(matches[i][0]); } } Since I'm filtering the good images based on the nearest neighbor distance ratio, do I need to still do Euclidean distance calculation? And I want to know when I use the knnMatch method in FlannBasedMatcher , inside the method do they use the Euclidean distance to