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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by