How do you get a stand alone matlab application to read images?

I am trying to create a stand alone matlab application that imports images and performs various operations on those images. I had no problem building my package with the deploytool and installing the MCR but when I double click on the application only a portion of my script runs. The application displays the dialogue box I created but after I input the parameters into the dialogue box the application closes. It seems like the images I put into the folder containing the application are not being read by my application. The application uses the imread function and the names of the files I want the application to read are manually inputted into the dialogue box. Is my application operating in a different directory than the folder it is in? How can I get my application to read these images?

Answers (1)

You should specify the location of your images in the function imread

Asked:

on 15 May 2013

Community Treasure Hunt

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

Start Hunting!