画像間でSURFを行った後の対応点のmatched points データの中身について
이전 댓글 표시
画像間でSURFを行った後にワークスペース内に取得される対応点データ(下記のmatched points1.2です)の中を見たいのですが、どの様に見れば良いのでしょうか?SURFのコード自体はMathWorksのSURFに関するサイトに載っているコードをそのまま使用しています。簡単な問題かもしれませんが、宜しくお願い致します。
if true
% code
I1 = imread('1.bmp');
I2 = imread('2.bmp');
% SURF 特徴量を検出
% マッチングしたポイント1
points1 = detectSURFFeatures(I1);
circlePoints1 = points1.Location;
% マッチングしたポイント2
points2 = detectSURFFeatures(I2);
circlePoints2 = points2.Location;
[f1,vpts1] = extractFeatures(I1,points1);
[f2,vpts2] = extractFeatures(I2,points2);
indexPairs = matchFeatures(f1,f2) ;
matchedPoints1 = vpts1(indexPairs(:,1));
matchedPoints2 = vpts2(indexPairs(:,2));
figure; showMatchedFeatures(I1,I2,matchedPoints1,matchedPoints2);
legend('matched points 1','matched points 2');
end
댓글 수: 2
michio
2017년 5월 15일
1. コマンド ウィンドウ — コマンド プロンプトに変数名を入力します。
2. 変数エディター — ワークスペース ブラウザーで変数名をダブルクリックします。
また、関数 openvar を使用することもできます。たとえば、変数 A を開くには「openvar('A')」と入力します。
ichiro obayashi
2017년 5월 16일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Title에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!