MATLAB: Getting errors in a code…

MATLABsift

Hello everyone, I am beginner to MATLAB. I am working on "SIFT key-point extraction and matching". So the firstmost implementation for the same is available here but it is giving the following error.
'siftWin32' is not recognized as an internal or external command,
operable program or batch file.
Error using sift (line 58)
Invalid keypoint file beginning.
kindly help to make it run…Thanks in advance

Best Answer

harpreet - please describe the steps that you are following that lead to the above error. Are you able to run the software in MATLAB? Are you running the above from the command line in the directory where the software is located?
In the MATLAB command window, I can do the following
>> cd siftDemoV4\
>> [image, descrips, locs] = sift('scene.pgm');
Finding keypoints...
1021 keypoints found.
>> showkeys(image, locs);
Drawing SIFT keypoints ...
>> match('scene.pgm','book.pgm');
Finding keypoints...
1021 keypoints found.
Finding keypoints...
882 keypoints found.
Found 98 matches.
And from the DOS command line (asssuming that I'm in the directory where the files are located) I can issue the following commands
C:\Users\Geoff\Documents\MATLAB\siftDemoV4>sift <book.pgm >book.key
'sift' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Geoff\Documents\MATLAB\siftDemoV4>siftWin32 <book.pgm >book.key
Finding keypoints...
882 keypoints found.
Note the error message in the above which is similar to yours because I am running an invalid exe for my workstation. Are you executing the correct executable for your OS? If your OS is Windows, is it 32-bit?
Related Question