Thread Subject: problem with IMPOLY in compiled GUI

Subject: problem with IMPOLY in compiled GUI

From: Patrick R

Date: 21 Jan, 2009 11:21:02

Message: 1 of 4

hi there,

I have a problem with the IMPOLY function in my GUI, after I compiled it to run as a standalone application.

the idea is to open a new figure containing an image, then using impoly (or roipoly) to draw a polygon and then get the window closed again.
but as soon as the function IMPOLY is called, an error occurs.

anybody an idea on how to solve this prob? is it possible to call new figures in compiled GUIs?

thanks, patrick

Subject: problem with IMPOLY in compiled GUI

From: Patrick R

Date: 21 Jan, 2009 13:27:02

Message: 2 of 4

I've found out, that the problem is a missing point.png icon which is needed by IMPOLY. but this file is not included when compiling the GUI. it should be located in the
"C:\Dokumente und Einstellungen\ptrk\Lokale Einstellungen\Anwendungsdaten\MathWorks\mcr_cache_v78\ROIanalyzer_D4EA58FE8B9BF53B93152E48186D06DB\toolbox\images\icons" folder, whereby ROIanalyzer is the name of my application.

anyone an idea how to include this point.png in the compiled version?

thanks


"Patrick R" <p.reichmann@inode.at> wrote in message <gl70eu$qdt$1@fred.mathworks.com>...
> hi there,
>
> I have a problem with the IMPOLY function in my GUI, after I compiled it to run as a standalone application.
>
> the idea is to open a new figure containing an image, then using impoly (or roipoly) to draw a polygon and then get the window closed again.
> but as soon as the function IMPOLY is called, an error occurs.
>
> anybody an idea on how to solve this prob? is it possible to call new figures in compiled GUIs?
>
> thanks, patrick

Subject: problem with IMPOLY in compiled GUI

From: Patrick R

Date: 21 Jan, 2009 14:45:03

Message: 3 of 4

once again, just wanted to inform you, that I have solved the problem! :)

it was this missing point.png file, which I have now added manually.
therefore you need to add following path in the folder where your main .m file is located:
\toolbox\images\icons\

and now copy the point.png file into this folder. finally add this file to the "other files" foder inside the deploytool toolbar.

now the compiled application should copy the point.png into the correct directory.
hth, best regards, patrick

"Patrick R" <p.reichmann@inode.at> wrote in message <gl77r6$47r$1@fred.mathworks.com>...
> I've found out, that the problem is a missing point.png icon which is needed by IMPOLY. but this file is not included when compiling the GUI. it should be located in the
> "C:\Dokumente und Einstellungen\ptrk\Lokale Einstellungen\Anwendungsdaten\MathWorks\mcr_cache_v78\ROIanalyzer_D4EA58FE8B9BF53B93152E48186D06DB\toolbox\images\icons" folder, whereby ROIanalyzer is the name of my application.
>
> anyone an idea how to include this point.png in the compiled version?
>
> thanks
>
>
> "Patrick R" <p.reichmann@inode.at> wrote in message <gl70eu$qdt$1@fred.mathworks.com>...
> > hi there,
> >
> > I have a problem with the IMPOLY function in my GUI, after I compiled it to run as a standalone application.
> >
> > the idea is to open a new figure containing an image, then using impoly (or roipoly) to draw a polygon and then get the window closed again.
> > but as soon as the function IMPOLY is called, an error occurs.
> >
> > anybody an idea on how to solve this prob? is it possible to call new figures in compiled GUIs?
> >
> > thanks, patrick

Subject: problem with IMPOLY in compiled GUI

From: Simone

Date: 20 Jan, 2011 09:34:04

Message: 4 of 4

Hi Patrick...
First of all thank you for your topic...
Many people had the same problem but your solution is the only one I found in the net...
Unfortunately it didn't work for me....

So I solved by another way...I hope it can be usefull for anyone...

I modified the file "C:\Program Files\MATLAB\R2008a\toolbox\images\imuitools\private\polygonSymbol.m", where, at the line 71, the file "point.png" is loaded...

I commented the line "cursor = imread(fullfile(ipticondir,'point.png'));" and I added:

ACTDIR = cd;
ACTDIR = [ACTDIR,filesep,'icons',filesep];
cursor = imread(fullfile(ACTDIR,'point.png'));

Then I copied the file "point.png" in the directory "icons", added where my main.m file to be compiled, and I compiled the gui.

Finally I had to add the whole directory "icons" in the path where my "main.exe" file resides and it works perfectly...

When your application is compiled the modified "polygonSymbol.m" file is compiled too and it make work the exe perfectly...
After having compiled you can delete the modification in your "polygonSymbol.m" file to not disturb MATLAB...:-)

Hope it is usefull
Thanks
Simone


"Patrick R" wrote in message <gl7cdf$e1s$1@fred.mathworks.com>...
> once again, just wanted to inform you, that I have solved the problem! :)
>
> it was this missing point.png file, which I have now added manually.
> therefore you need to add following path in the folder where your main .m file is located:
> \toolbox\images\icons\
>
> and now copy the point.png file into this folder. finally add this file to the "other files" foder inside the deploytool toolbar.
>
> now the compiled application should copy the point.png into the correct directory.
> hth, best regards, patrick
>
> "Patrick R" <p.reichmann@inode.at> wrote in message <gl77r6$47r$1@fred.mathworks.com>...
> > I've found out, that the problem is a missing point.png icon which is needed by IMPOLY. but this file is not included when compiling the GUI. it should be located in the
> > "C:\Dokumente und Einstellungen\ptrk\Lokale Einstellungen\Anwendungsdaten\MathWorks\mcr_cache_v78\ROIanalyzer_D4EA58FE8B9BF53B93152E48186D06DB\toolbox\images\icons" folder, whereby ROIanalyzer is the name of my application.
> >
> > anyone an idea how to include this point.png in the compiled version?
> >
> > thanks
> >
> >
> > "Patrick R" <p.reichmann@inode.at> wrote in message <gl70eu$qdt$1@fred.mathworks.com>...
> > > hi there,
> > >
> > > I have a problem with the IMPOLY function in my GUI, after I compiled it to run as a standalone application.
> > >
> > > the idea is to open a new figure containing an image, then using impoly (or roipoly) to draw a polygon and then get the window closed again.
> > > but as soon as the function IMPOLY is called, an error occurs.
> > >
> > > anybody an idea on how to solve this prob? is it possible to call new figures in compiled GUIs?
> > >
> > > thanks, patrick

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
compile Patrick R 21 Jan, 2009 09:45:08
gui Patrick R 21 Jan, 2009 09:45:08
impoly Patrick R 21 Jan, 2009 09:45:08
roipoly Patrick R 21 Jan, 2009 09:45:08
pointpng Patrick R 21 Jan, 2009 09:45:08
rssFeed for this Thread

Contact us at files@mathworks.com