zoukankan      html  css  js  c++  java
  • FAST特征点检测features2D

    #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);
    }
    

      

  • 相关阅读:
    28
    27
    26
    25
    24
    23
    17
    16
    15
    14
  • 原文地址:https://www.cnblogs.com/sylar120/p/3558249.html
Copyright © 2011-2022 走看看