MATLAB 利用Harris焦点探测器和SIFT对一副图像进行处理,输出角点和特征点的像素坐标
时间: 2024-05-06 12:19:29 浏览: 37
以下是MATLAB代码示例,其中'image.jpg'是待处理的图像文件名:
```matlab
% 读取图像
img = imread('image.jpg');
% 使用Harris角点检测器
corners = detectHarrisFeatures(img);
% 输出角点像素坐标
disp('Harris角点坐标:')
disp(corners.Location)
% 使用SIFT特征点检测器
points = detectSURFFeatures(img);
% 输出SIFT特征点像素坐标
disp('SIFT特征点坐标:')
disp(points.Location)
```
执行该代码后,将输出Harris角点和SIFT特征点的像素坐标。
阅读全文
相关推荐















