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

2 views (last 30 days)
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);

Answers (1)

Qu Cao
Qu Cao on 16 Nov 2020
There is a typo in your code, estimateGeomerticTransform should be estimateGeometricTransform.

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!