how to run SobelFilter using different input image

Hi, there,

I am new to CUDA, I downloaded and compiled the CUDA sample source code SobelFilter, it worked well.
Now I tried to use a different input image (say, sample.ppm saved in C:\downloads), instead of the lena.pgm file in the /data folder.

In C:\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\bin\win64\Debug, I found the SobelFilter.exe,
In a command prompt, I type “SobelFilter C:\downloads\sample.ppm”,
but I got an error:
“Error when parsiing command line argument string”,

Does anyone know what’s wrong with my commandline?

Thanks a lot!

If you look at the source you’ll see that you need to use:

SobelFilter -file=C:\downloads\sample.ppm

Hello, Simon,

Thanks a lot for your help!

I tried to use the following to commandline

(1) SobelFilter -file=C:\downloads\sample.ppm

and

(2) SobelFilter C:\downloads\sample.ppm

Both of them still gave the same error as before,

Error when parsing command line argument string

Guang