Undefined function 'estimateGeomerticTransform' for input arguments of type 'SURFPoints'.
2 次查看(过去 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);
0 个评论
回答(1 个)
Qu Cao
2020-11-16
There is a typo in your code, estimateGeomerticTransform should be estimateGeometricTransform.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!