Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!d45g2000hsc.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Saving a overlay and image figure
Date: Mon, 8 Sep 2008 10:45:16 -0700 (PDT)
Organization: http://groups.google.com
Lines: 38
Message-ID: <cf49d90b-baef-42bc-a5ad-36ffd3282dcd@d45g2000hsc.googlegroups.com>
References: <ga1fvr$4em$1@fred.mathworks.com>
NNTP-Posting-Host: 192.44.136.113
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1220895916 4685 127.0.0.1 (8 Sep 2008 17:45:16 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 8 Sep 2008 17:45:16 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: d45g2000hsc.googlegroups.com; posting-host=192.44.136.113; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
X-HTTP-Via: 1.1 bdci2px (NetCache NetApp/6.0.7)
Xref: news.mathworks.com comp.soft-sys.matlab:489236



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