Invalid syntax at 'x'. Possibly a ), }, ] is missing.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
% Example: match('scene.pgm','book.pgm');
function num = match('SIFT REFF.jpg' ,'SIFT TEST.jpg') %%sir here im getting this error on"SIFT REFF.jpg"
% Find SIFT keypoints for each image
[im1, des1, loc1] = sift(image1);
[im2, des2, loc2] = sift(image2);
sir please help me to rectify this error
0 Kommentare
Antworten (1)
Jan
am 19 Apr. 2017
Bearbeitet: Jan
am 19 Apr. 2017
You cannot define a function with fixed inputs. The input arguments must be variables:
function num = match(image1, image2)
...
Then you call this from the command window or another function by:
num = match('SIFT REFF.jpg' ,'SIFT TEST.jpg')
These are the very basics of defining a function. Reading the "Getting Started" chapters will be very useful for you.
0 Kommentare
Siehe auch
Kategorien
Mehr zu SIFT - Scale Invariant Feature Transform finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!