Call function that deliver 2 results

1 view (last 30 days)
Anass
Anass on 11 Oct 2013
Answered: Anass on 12 Oct 2013
Hello, I work on Image Quality Assessment Algortihms. My problem is the following: When I call a function that needs two. Exe files (needed for SVM classification) that is not in the current folder (after changing the path, including adding sub paths) so that it provides a result A. When I put it in the folder where is the function, so that it provides a result B (which the correct result). I do not understand why this metric provides two different results? What I realized is that when I call the function to its own directory, so that it recognizes the EXE files which I have spoken. however when I call out the current directory, it do not know the .EXE !! If you have any ideas, I'll take.
Thank you.

Answers (2)

Image Analyst
Image Analyst on 12 Oct 2013
How can it provide result A when it's not in the search path, and return the correct result B when it is in the search path when you say it can't even find the EXE when it's in the current folder? How can it possibly return result B if it can't find the EXE?

Anass
Anass on 12 Oct 2013
Thank you for your reply.
Here is the code of the metric (on attachement).
To test, simply load a image.jpg, and call the function Biqi: score_qualité Biqi = (image);
and there you will notice that if you are in the folder that contains all the functions of the metric, it gives a result.
and if you are out the file, and although you add the path and subpath of the folder containing the codes, so after test, you will have a second income.
I'm waiting for your response.
thank you

Tags

Community Treasure Hunt

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

Start Hunting!