当前位置:   article > 正文

教你使用Matlab进行角点检测(Harris/MinEigen实现)_matlab角点检测

matlab角点检测

10行代码实现检测图像中角点

代码如下:

  1. clc;
  2. clear;
  3. close all;
  4. % 导入图像
  5. [FileName,PathName,FilterIndex]= uigetfile({'*.png;*.jpg;*.bmp';'*.*'});
  6. filename = fullfile(PathName,FileName);
  7. img = imread(filename);
  8. I = rgb2gray(img);
  9. % 采用Harris算法
  10. corners = detectHarrisFeatures(I,'MinQuality',0.9);
  11. % 采用MinEigen算法
  12. % corners = detectMinEigenFeatures(I)
  13. imshow(I);hold on;
  14. plot(corners.selectStrongest(50));

角点检测结果: 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/天景科技苑/article/detail/898874
推荐阅读
相关标签
  

闽ICP备14008679号