2014年2月22日

摘要: // 载入图像 img=cvLoadImage("lena.jpg",-1); if(!img) { printf("Could not load image file: %s\n",argv[1]); exit(0); } // 获取图像信息 height = img->height; width = img->width; step = img->widthStep; channels = img->nChannels; data = (uchar *)img->image... 阅读全文

posted @ 2014-02-22 20:08 sylar少侠 阅读(396) 评论(0) 推荐(0) 编辑


2014年2月20日

摘要: #include #include #include #include using namespace cv;void main(){ Mat image; image = imread("d:\\p.jpg"); // vector of keyPoints std::vector keyPoints; // construction of the fast feature detector object FastFeatureDetector fast(40); // 检测的阈值为40 // feature point detection fast.detect(ima 阅读全文

posted @ 2014-02-20 19:06 sylar少侠 阅读(259) 评论(0) 推荐(0) 编辑


Copyright © 2024 sylar少侠
Powered by .NET 8.0 on Kubernetes