Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: abhinavgupta/SIFT-DSMAC
base: e41a10ba4c
...
head fork: abhinavgupta/SIFT-DSMAC
compare: experiment
Checking mergeability… Don't worry, you can still create the pull request.
  • 5 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 1 addition and 14 deletions.
  1. +1 −14 SIFT_Descriptor.cpp
View
15 SIFT_Descriptor.cpp
@@ -15,7 +15,7 @@
using namespace cv;
//Sorting Comparison Function - Added by Ritesh
-bool myobject (DMatch i,DMatch j)
+bool myobject (const DMatch& i,const DMatch& j)
{
return (i.distance<j.distance);
}
@@ -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);

No commit comments for this range

Something went wrong with that request. Please try again.