Path: news.mathworks.com!not-for-mail
From: "Joaquim Luis" <jluis@--ualg--.pt>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Saving a overlay and image figure
Date: Mon, 8 Sep 2008 19:06:02 +0000 (UTC)
Organization: Univ do Algarve
Lines: 46
Message-ID: <ga3t2q$7l7$1@fred.mathworks.com>
References: <ga1fvr$4em$1@fred.mathworks.com> <cf49d90b-baef-42bc-a5ad-36ffd3282dcd@d45g2000hsc.googlegroups.com>
Reply-To: "Joaquim Luis" <jluis@--ualg--.pt>
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 1220900762 7847 172.30.248.38 (8 Sep 2008 19:06:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 8 Sep 2008 19:06:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 594262
Xref: news.mathworks.com comp.soft-sys.matlab:489257



ImageAnalyst <imageanalyst@mailinator.com> wrote in message <cf49d90b-baef-42bc-a5ad-36ffd3282dcd@d45g2000hsc.googlegroups.com>...
> On Sep 7, 5:10=A0pm, "Nicholas Beser" <nick.be...@jhuapl.edu> wrote:
> > I was able to create a very large image with a line overlay in MATLAB 200=
> 8a. I tried to use getimage to retrieve the combination of image and line o=
> verlay, however the function only returned the image (no line art).
> >
> > Here is the code fragment:
> > h=3Dimshow(imgtest,'XData',XData,'YData',YData);title(frmstr1);
> > hold on
> > for k=3D2:frmcnt
> > =A0 =A0 xl=3D[pointlist(1,k-1) pointlist(1,k)];
> > =A0 =A0 yl=3D[pointlist(2,k-1) pointlist(2,k)];
> > =A0 =A0 plot(xl,yl,'Color','b');
> > end
> > Anewimg=3Dgetimage(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 figu=
> re as a jpg, it is not saved at the full resolution, only at display resolu=
> tion. Since the display is at 17%, that is not sufficient.
> >
> > Thank-you,
> >
> > Nick Beser
> > nick.be...@jhuapl.edu
> 
> -----------------------------------------------------------------
> Good question and I don't think I've seen a satisfactory answer yet.
> I think there's some sort of incompatibility between how it draws
> overlay graphics and the underlying pixel based bitmap.  As you know
> the image may display on screen in the little axes which will have a
> completely different number of pixels on your screen than in the
> underlying pixel image.  And the graphics are drawn to fit in this
> screen image.  The methods I've seen all produce saved images that are
> different dimensions than your original image (for example, the other
> responses to your question).
> Still looking for what we really want. . . . . . .
> ImageAnalyst


Hi,
It was for these and other reason that I created the IMCAPTURE. Some "clients" seam to be happy with it as well.
www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=13355&objectType=FILE

J. Luis