Prev: help needed.....
Next: object shape detection
From: Hardik on 6 May 2010 07:44 When a person searches for an image without uploading an image......What error pops up on the screen.......Does it show an axes box empty? or does it take the user to another window.......If another window what is the particular window......
From: Sean on 6 May 2010 07:58 "Hardik " <hardik_88(a)hotmail.com> wrote in message <hrua26$1av$1(a)fred.mathworks.com>... > When a person searches for an image without uploading an image......What error pops up on the screen.......Does it show an axes box empty? or does it take the user to another window.......If another window what is the particular window...... What error or action occurs when you do exactly what you just said?
From: Mark Shore on 6 May 2010 08:15 "Hardik " <hardik_88(a)hotmail.com> wrote in message <hrua26$1av$1(a)fred.mathworks.com>... > When a person searches for an image without uploading an image......What error pops up on the screen.......Does it show an axes box empty? or does it take the user to another window.......If another window what is the particular window...... Two things, because my second coffee hasn't kicked in yet. 1. Use a descriptive subject line (not "Urgent") and/or tag the message with keywords. 2. This is not - by any possible stretch of the imagination - urgent.
From: Hardik on 6 May 2010 08:48 "Mark Shore" <mshore(a)magmageosciences.ca> wrote in message <hrubsq$pf$1(a)fred.mathworks.com>... > "Hardik " <hardik_88(a)hotmail.com> wrote in message <hrua26$1av$1(a)fred.mathworks.com>... > > When a person searches for an image without uploading an image......What error pops up on the screen.......Does it show an axes box empty? or does it take the user to another window.......If another window what is the particular window...... > > Two things, because my second coffee hasn't kicked in yet. > > 1. Use a descriptive subject line (not "Urgent") and/or tag the message with keywords. > > 2. This is not - by any possible stretch of the imagination - urgent. im sorry i meant... When the Axes Box does not contain any image and when user clicks on the Push button then an error should come or another MSGBOX should be displayed sayin "Pllease upload an image" What shall we do in dis case??? what is the condition to check whether the axes box is empty or not... i tried writing the follow if get(0,'CurrentFigure') % if the axes is empty warndlg('Please Upload an Image','Upload Image'); else Tot=test_eucled(fullFileName); % link to d other file end but now its showing the alert box even when an image is uploaded.... how do i solve dis problem?? thanx in advance..
From: Steven Lord on 6 May 2010 10:57 "Hardik " <hardik_88(a)hotmail.com> wrote in message news:hrudq4$5qb$1(a)fred.mathworks.com... > "Mark Shore" <mshore(a)magmageosciences.ca> wrote in message > <hrubsq$pf$1(a)fred.mathworks.com>... >> "Hardik " <hardik_88(a)hotmail.com> wrote in message >> <hrua26$1av$1(a)fred.mathworks.com>... >> > When a person searches for an image without uploading an >> > image......What error pops up on the screen.......Does it show an axes >> > box empty? or does it take the user to another window.......If another >> > window what is the particular window...... >> >> Two things, because my second coffee hasn't kicked in yet. >> >> 1. Use a descriptive subject line (not "Urgent") and/or tag the message >> with keywords. >> >> 2. This is not - by any possible stretch of the imagination - urgent. > > im sorry i meant... > When the Axes Box does not contain any image and when user clicks on the > Push button then an error should come or another MSGBOX should be > displayed sayin "Pllease upload an image" What shall we do in dis case??? Since this sounds like you're working with a GUI you've been given, I would contact the author of that GUI and ask them for clarification and/or to include more information about what specifically you need to do in the message box. > what is the condition to check whether the axes box is empty or not... There is no such condition (short of doing some serious image processing, and even that wouldn't always work.) You could check if the axes has no children, but what if an object on another axes overlaps that axes? What if that overlapping object is the same color as the axes it's overlapping -- does that count as an empty "axes box" or not? And I agree with Mark's first comment -- you should definitely use a more specific subject line than "Urgent". Make your post stand out by giving it a clear, yet descriptive subject -- something like "How can I determine if my axes box is empty?" would probably draw more attention from people interested in helping with graphics questions. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
|
Pages: 1 Prev: help needed..... Next: object shape detection |