Skip to content

Comparing changes

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

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 7 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Showing with 4 additions and 15 deletions.
  1. +1 −14 SIFT_Descriptor.cpp
  2. +3 −1 test-images/ideal-parameters-for-images
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);
View
4 test-images/ideal-parameters-for-images
@@ -7,4 +7,6 @@ This document will tell you the ideal parameters for the test images here.
The box box_in_scene are the best images to try your hands by varying the parameters.
-As you can see the object object2 series, the closer zoomup makes a difference in the resize parameter keeping the matches parameter rather constant.
+As you can in see the object object2 series, the closer zoomup makes a difference in the resize parameter
+keeping the matches parameter rather constant, thus showing that in a UAV aaplication, once a thorough
+callibration is done, the final output depends on the zoomout parameter and thus the height of the vehicle.

No commit comments for this range

Something went wrong with that request. Please try again.