Undefined function 'estimateGeomerticTransform' for input arguments of type 'SURFPoints'.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Qu Cao
el 16 de Nov. de 2020
There is a typo in your code, estimateGeomerticTransform should be estimateGeometricTransform.
0 comentarios
Ver también
Categorías
Más información sobre Image Processing and Computer Vision en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!