Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: GUI to load image and draw on it???
Date: Mon, 3 Nov 2008 16:54:02 +0000 (UTC)
Organization: New York University
Lines: 26
Message-ID: <genaba$m0s$1@fred.mathworks.com>
References: <gen746$jkd$1@fred.mathworks.com> <gen9oi$dqo$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1225731242 22556 172.30.248.37 (3 Nov 2008 16:54:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 3 Nov 2008 16:54:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1583917
Xref: news.mathworks.com comp.soft-sys.matlab:498675


Thank you very much for your guidance Dave.

The user should be able to open an image, then freedraw on top of the image. If that is not possible or too complicated, then a straight line should suffice.

"Dave Brackett" <davebrackett@hotmail.com> wrote in message <gen9oi$dqo$1@fred.mathworks.com>...
> "Becca Davidson" <becca.davidson@gmail.com> wrote in message <gen746$jkd$1@fred.mathworks.com>...
> > Hi Everyone,
> > 
> > I am relatively new to Matlab, and I have been given a task to be integrated into a research project in my Lab. I would appreciate some help if you have a moment.
> > 
> > Basically, I need to load an image in Matlab using a Gui. Then the user should be able to draw on top of the image.
> > 
> > I am not sure where to start with this task and have limited familiarity with Matlab. Where should I start?
> > 
> > Also, can this be done in matlab. Would it be better to do parts of the GUI in java and integrate it with Matlab?
> > 
> > Thank You,
> > Becca
> 
> What do you mean exactly by 'draw on top of the image'. Draw what?
> 
> It is easy to display an image in a GUI but if you can clarify what you want with regards to the drawing aspect we can provide further help.
> 
> Type 'guide' into the command window and this will bring up the GUI tool. Click on the axes control on the left toolbar and drag it onto the grid. Resize how you want. Now right click on that axes object and go to callbacks. This will create the .m file associated with the GUI figure. In that space you can then type simple code to load the image, e.g. axes(handles.axes1), then imshow('your picture filename here').
> 
> Then run the .m file.