Figureに出力された全ての黄色の線の長さの平均を三平方の定理を用いて出すコードを教えてください。
조회 수: 1(최근 30일)
표시 이전 댓글
clear all
% MATLAB で用意されている画像の読み込み
I1 = rgb2gray(imread('viprectification_deskLeft.png'));
I2 = rgb2gray(imread('viprectification_deskRight.png'));
% 特徴の検出
points1 = detectHarrisFeatures(I1);
points2 = detectHarrisFeatures(I2);
% 特徴の記述
[features1,valid_points1] = extractFeatures(I1,points1);
[features2,valid_points2] = extractFeatures(I2,points2);
% 特徴をマッチング
indexPairs = matchFeatures(features1,features2);
matchedPoints1 = valid_points1(indexPairs(:,1),:);
matchedPoints2 = valid_points2(indexPairs(:,2),:);
% マッチングの表示
figure;
showMatchedFeatures(I1,I2,matchedPoints1,matchedPoints2);
% 以下に、Figureに出力された全ての黄色の線の平均を三平方の定理を用いて出すコード
댓글 수: 0
채택된 답변
추가 답변(0개)
참고 항목
범주
Find more on Image Processing and Computer Vision in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!