Figureに出力された全ての黄色の線の長さの平均を三平方の定理を用いて出すコードを教えてください。
2 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
More Answers (0)
See Also
Categories
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!