首页 > 其他 > 详细

FAST特征点检测features2D

时间:2014-02-21 08:37:45      阅读:371      评论:0      收藏:0      [点我收藏+]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>
 
#include <vector>
 
using namespace cv;
 
void main()
{
    Mat image;
    image = imread("d:\\p.jpg");
    // vector of keyPoints
    std::vector<KeyPoint> keyPoints;
    // construction of the fast feature detector object
    FastFeatureDetector fast(40);   // 检测的阈值为40
    // feature point detection
    fast.detect(image,keyPoints);
    drawKeypoints(image, keyPoints, image, Scalar::all(255), DrawMatchesFlags::DRAW_OVER_OUTIMG);
    imshow("FAST feature", image);
    cvWaitKey(0);
}

  

FAST特征点检测features2D

原文:http://www.cnblogs.com/sylar120/p/3558249.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!