我尝试在Ubuntu 14.04上使用qt creator调试一些openCV代码 但是,如果我逐步调试,那么调试器就不会进入openCV文件。
这是想要调试的代码
#include <QCoreApplication>
#include <stdio.h>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
int main(int argc, char *argv[]) {
Mat img_1 = imread( argv[1], CV_LOAD_IMAGE_GRAYSCALE );
Mat img_2;
FastFeatureDetector fast = FastFeatureDetector(); <-----
vector<KeyPoint> kp;
fast.detect(img_1,kp); <------
Scalar color = (255,0,0);
drawKeypoints(img_1,kp,img_2,color);
namedWindow( "Display window", WINDOW_AUTOSIZE );
imshow( "Display window", img_2 );
waitKey(0);
return -1;
}
我将使用&#34;&lt; -----&#34;
进入我评论的openCV文件感谢您的帮助