以下是一段 Matlab 2017b 版本的 orb 代码,实现了图像的特征点提取和匹配,并显示了匹配结果:
% 读入两张图像
img1 = imread('图像1.jpg');
img2 = imread('图像2.jpg');
% 特征点提取
points1 = detectORBFeatures(img1);
points2 = detectORBFeatures(img2);
% 特征点描述
[features1, valid_points1] = extractFeatures(img1, points1);
[features2, valid_points2] = e