Getting errors in a code...

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

 Respuesta aceptada

Geoff Hayes
Geoff Hayes el 17 de Mayo de 2015

0 votos

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?

2 comentarios

Walter Roberson
Walter Roberson el 18 de Mayo de 2015
"The demo program uses PGM format for the input images"
harpreet
harpreet el 18 de Mayo de 2015
thank you sir

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Etiquetas

Preguntada:

el 17 de Mayo de 2015

Comentada:

el 18 de Mayo de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by