Momo
Momo

Reputation: 523

matlab imread error using the executable

I have a matlab function img_process that requires the following parameters : image_name intensity and boundary, so if I run the following on my matlab console :

img_process 'pic1.png' 0.01 1 

This will run the function and the image will be processed and I will get a result printed out.

Now I have compiled the script as a windows standalone app named img_process_test. I then try to run it from my command line in windows from the distrib folder like :

img_process_test 'pic1.png' 0.01 1

and it will tell me that error imread , file was not found.

I did try to place the pic1.png in the distrib and src and the img_process_test folders but still it will not work.

Any idea ?
Thank you for looking

Upvotes: 0

Views: 601

Answers (1)

Momo
Momo

Reputation: 523

I have fixed this. I found a good help here : http://blogs.mathworks.com/loren/2010/12/21/strings-and-numbers-as-arguments/

in case someone stumbles into this and would like to know a workaround.

Upvotes: 1

Related Questions