OpenCV中文网站

 找回密码
 立即注册
搜索
热搜: 安装 配置
查看: 2293|回复: 2

ORB的detect的感兴趣区域无法生效

[复制链接]
发表于 2019-1-8 21:52:37 | 显示全部楼层 |阅读模式
我设置了特征点提取时的范围,但是函数还是全图提取特征点。
  1. #include<iostream>
  2. #include<vector>

  3. #include<opencv2/opencv.hpp>

  4. using namespace std;
  5. using namespace cv;


  6. int main()
  7. {
  8.         clock_t start;
  9.         start = clock();
  10.         //cout << start << endl;
  11.         //读取图片
  12.         Mat rgbd1 = imread("./1.jpg",1);
  13.         Mat rgbd2 = imread("./2.jpg",1);
  14.         cout << "第一张图大小:" << rgbd1.size() << endl;
  15.         cout << "第二张图大小:" << rgbd2.size() << endl;
  16.         imshow("rgbd1", rgbd1);
  17.         imshow("rgbd2", rgbd2);
  18.         waitKey(0);


  19.         Ptr<ORB> detector = ORB::create();

  20.         vector<KeyPoint> keypoints_1, keypoints_2;
  21.         Mat rgbd11(rgbd1, Rect(210, 0, 80, 497));
  22.         Mat rgbd22(rgbd2, Rect(70, 0, 80, 497));
  23.         imshow("rgbd11", rgbd11);
  24.         imshow("rgbd22", rgbd22);
  25.         waitKey(0);
复制代码
这是特征点提取的部分代码?求指教
回复

使用道具 举报

 楼主| 发表于 2019-1-8 22:53:16 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2019-2-14 19:56:48 | 显示全部楼层
Ptr<ORB> detector = ORB::create();

提取代码在哪里?
推荐
特征提取的综合实验(多种角度比较SIFT、SURF、BRISK、ORB算法)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|OpenCV中文网站

GMT+8, 2024-5-3 22:09 , Processed in 0.008354 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表