updated some included headers
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
#include <highgui.h>
|
#include "opencv2/highgui/highgui.hpp"
|
||||||
#include <opencv2/core/core.hpp>
|
#include "opencv2/core/core.hpp"
|
||||||
#include <opencv2/imgproc/imgproc.hpp>
|
#include "opencv2/imgproc/imgproc.hpp"
|
||||||
#include <opencv2/features2d/features2d.hpp>
|
#include "opencv2/features2d/features2d.hpp"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
#include <highgui.h>
|
#include "opencv2/highgui/highgui.hpp"
|
||||||
#include <opencv2/imgproc/imgproc.hpp>
|
#include "opencv2/imgproc/imgproc.hpp"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
#include <highgui.h>
|
#include "opencv2/highgui/highgui.hpp"
|
||||||
#include "opencv2/imgproc/imgproc.hpp"
|
#include "opencv2/imgproc/imgproc.hpp"
|
||||||
#include "opencv2/features2d/features2d.hpp"
|
#include "opencv2/features2d/features2d.hpp"
|
||||||
#include "opencv2/ml/ml.hpp"
|
#include "opencv2/ml/ml.hpp"
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
@@ -1,8 +1,7 @@
|
|||||||
#include "opencv2/core/core.hpp"
|
|
||||||
#include "opencv2/calib3d/calib3d.hpp"
|
#include "opencv2/calib3d/calib3d.hpp"
|
||||||
#include "opencv2/imgproc/imgproc.hpp"
|
|
||||||
#include "opencv2/features2d/features2d.hpp"
|
#include "opencv2/features2d/features2d.hpp"
|
||||||
#include <highgui.h>
|
#include "opencv2/highgui/highgui.hpp"
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
using namespace cv;
|
using namespace cv;
|
||||||
|
@@ -1,13 +1,12 @@
|
|||||||
#include <highgui.h>
|
#include "opencv2/highgui/highgui.hpp"
|
||||||
#include "opencv2/features2d/features2d.hpp"
|
#include "opencv2/features2d/features2d.hpp"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
using namespace cv;
|
using namespace cv;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
const char dlmtr = '/';
|
|
||||||
|
|
||||||
void maskMatchesByTrainImgIdx( const vector<DMatch>& matches, int trainImgIdx, vector<char>& mask );
|
void maskMatchesByTrainImgIdx( const vector<DMatch>& matches, int trainImgIdx, vector<char>& mask );
|
||||||
void readTrainFilenames( const string& filename, string& dirName, vector<string>& trainFilenames );
|
void readTrainFilenames( const string& filename, string& dirName, vector<string>& trainFilenames );
|
||||||
|
|
||||||
@@ -89,6 +88,7 @@ int main(int argc, char** argv)
|
|||||||
CV_Assert( queryPoints.size() == matches.size() );
|
CV_Assert( queryPoints.size() == matches.size() );
|
||||||
cout << ">" << endl;
|
cout << ">" << endl;
|
||||||
|
|
||||||
|
cout << "< 6.) Save results..." << endl;
|
||||||
Mat drawImg;
|
Mat drawImg;
|
||||||
vector<char> mask;
|
vector<char> mask;
|
||||||
for( size_t i = 0; i < trainImgCollection.size(); i++ )
|
for( size_t i = 0; i < trainImgCollection.size(); i++ )
|
||||||
@@ -99,6 +99,8 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
imwrite( string(argv[6]) + "/res_" + trainFilenames[usedTrainImgIdxs[i]] + ".png", drawImg );
|
imwrite( string(argv[6]) + "/res_" + trainFilenames[usedTrainImgIdxs[i]] + ".png", drawImg );
|
||||||
}
|
}
|
||||||
|
cout << ">" << endl;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,6 +118,8 @@ void maskMatchesByTrainImgIdx( const vector<DMatch>& matches, int trainImgIdx, v
|
|||||||
|
|
||||||
void readTrainFilenames( const string& filename, string& dirName, vector<string>& trainFilenames )
|
void readTrainFilenames( const string& filename, string& dirName, vector<string>& trainFilenames )
|
||||||
{
|
{
|
||||||
|
const char dlmtr = '/';
|
||||||
|
|
||||||
trainFilenames.clear();
|
trainFilenames.clear();
|
||||||
|
|
||||||
ifstream file( filename.c_str() );
|
ifstream file( filename.c_str() );
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
#include <highgui.h>
|
#include "opencv2/highgui/highgui.hpp"
|
||||||
#include "opencv2/core/core.hpp"
|
#include "opencv2/core/core.hpp"
|
||||||
#include "opencv2/imgproc/imgproc.hpp"
|
#include "opencv2/imgproc/imgproc.hpp"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
using namespace cv;
|
using namespace cv;
|
||||||
|
Reference in New Issue
Block a user