Path: news.mathworks.com!not-for-mail
From: "Nicholas Beser" <nick.beser@jhuapl.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Saving a overlay and image figure
Date: Mon, 8 Sep 2008 14:17:01 +0000 (UTC)
Organization: Johns Hopkins University APL
Lines: 33
Message-ID: <ga3c4t$rqa$1@fred.mathworks.com>
References: <ga1fvr$4em$1@fred.mathworks.com> <5c654054-d26c-4cf3-9865-171a56e230ad@p25g2000hsf.googlegroups.com>
Reply-To: "Nicholas Beser" <nick.beser@jhuapl.edu>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1220883421 28490 172.30.248.38 (8 Sep 2008 14:17:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 8 Sep 2008 14:17:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 10209
Xref: news.mathworks.com comp.soft-sys.matlab:489180



Thank-you for your reply. I guess I did not make the problem clear. I know I can save the figure, but it saves it at the screen resolution (1200x900). The native resolution of the mosaic was 5300x1500. While I can save the basic image obtained by getImage, the overlay is not retrieved with getImage. 

I saw on a earlier post, someone had asked Steve Eddings the same question, and was told to call the technical support. That was about a year ago.

Nick

Mars creature <jinbow@gmail.com> wrote in message <5c654054-d26c-4cf3-9865-171a56e230ad@p25g2000hsf.googlegroups.com>...
> On Sep 7, 5:10 pm, "Nicholas Beser" <nick.be...@jhuapl.edu> wrote:
> > I was able to create a very large image with a line overlay in MATLAB 2008a. I tried to use getimage to retrieve the combination of image and line overlay, however the function only returned the image (no line art).
> >
> > Here is the code fragment:
> > h=imshow(imgtest,'XData',XData,'YData',YData);title(frmstr1);
> > hold on
> > for k=2:frmcnt
> >     xl=[pointlist(1,k-1) pointlist(1,k)];
> >     yl=[pointlist(2,k-1) pointlist(2,k)];
> >     plot(xl,yl,'Color','b');
> > end
> > Anewimg=getimage(h);
> > hold off
> >
> > Is there some other function that I should use to save the entire figure to a graphics file (such as PNG or JPG)? While I can manually save the figure as a jpg, it is not saved at the full resolution, only at display resolution. Since the display is at 17%, that is not sufficient.
> >
> > Thank-you,
> >
> > Nick Beser
> > nick.be...@jhuapl.edu
> 
> Not sure if it works for you.
> You can use 'print' to save the figure to a graphic file, such as
> jpg,eps etc. 300dpi (-r300) should be enough to have a nice printout.
> Jinbo