Undefined function 'estimateG​eomerticTr​ansform' for input arguments of type 'SURFPoints'.

2 ビュー (過去 30 日間)
Miklós Förster
Miklós Förster 2020 年 11 月 16 日
回答済み: Qu Cao 2020 年 11 月 16 日
Hi,
why comes this error? I use MATLAB2020
Undefined function 'estimateGeomerticTransform' for input arguments of type 'SURFPoints'
%%
clear all;
refIm = imread('bohemian.jpg');
croppedIm = imcrop(refIm);
%%
refIm = rgb2gray(refIm);
descentIm = rgb2gray(croppedIm);
descentIm = imrotate(descentIm,90);
imshowpair(descentIm,refIm,'montage');
%%
refImPoints = detectSURFFeatures(refIm);
descentImPoints = detectSURFFeatures(descentIm);
%%
[refImFeatures, refImValidPoints] = extractFeatures(refIm,refImPoints,'Upright',false);
[descentImFeatures, descentImValidPoints] = extractFeatures(descentIm,descentImPoints,'Upright',false);
imshow(descentIm);
hold on;
displaypoints = 40;
plot(descentImValidPoints.selectStrongest(displaypoints));
%%
matchThresh = 0.9;
maxRatio = 0.8;
indexPairs = matchFeatures(refImFeatures,descentImFeatures,'MatchThreshold',matchThresh,'MaxRatio',maxRatio);
%%
refImMatchedPoints = refImValidPoints(indexPairs(:,1));
descentImMatchedPoints = descentImValidPoints(indexPairs(:,2));
%%
showMatchedFeatures(refIm,descentIm,refImMatchedPoints,descentImMatchedPoints,'montage');
%%
tform = estimateGeomerticTransform(descentImMatchedPoints,refImMatchedPoints,'projective');
Rref = imref2d(size(refIm));
descentImShifted = imwarp(descentIm,tform,'OutputView',Rref);
imshowair(descentImShifted,refim);

回答 (1 件)

Qu Cao
Qu Cao 2020 年 11 月 16 日
There is a typo in your code, estimateGeomerticTransform should be estimateGeometricTransform.

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by