Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'experiment'

  • Loading branch information...
commit 0792485d9f6def21e7ac519bb552cc6602aedf08 2 parents 3d2740c + e37fbdb
@ritsz ritsz authored
Showing with 0 additions and 13 deletions.
  1. +0 −13 SIFT_Descriptor.cpp
View
13 SIFT_Descriptor.cpp
@@ -65,19 +65,6 @@ int main (int argc, char** argv)
std::vector <DMatch> matches; //Initializing matcher and vector for matches extracted
matcher.match( descriptors_object, descriptors_scene, matches);
- double max_dist = 0;
- double min_dist = 100; //Initializing distance measuremenets for matches
-
- for (int i = 0; i <descriptors_object.rows; i++)
- {
- double dist = matches[i].distance;
- if( dist < min_dist) min_dist = dist; // finding max and min distance values
- if( dist > max_dist) max_dist = dist;
- }
-
- printf ("-- Max Distance : %f \n", max_dist);
- printf ("-- Min Distance : %f \n", min_dist);
-
std::vector<DMatch> good_matches;
std::sort(matches.begin(),matches.end(),myobject);
Please sign in to comment.
Something went wrong with that request. Please try again.