Path: news.mathworks.com!not-for-mail
From: "Dan Haeg" <haegd@msoe.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Printing an image to scale
Date: Fri, 4 Apr 2008 00:09:02 +0000 (UTC)
Organization: Milwaukee School of Engineering
Lines: 32
Message-ID: <ft3riu$98e$1@fred.mathworks.com>
References: <ft1nph$5rv$1@fred.mathworks.com>
Reply-To: "Dan Haeg" <haegd@msoe.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 1207267742 9486 172.30.248.38 (4 Apr 2008 00:09:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 4 Apr 2008 00:09:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 475291
Xref: news.mathworks.com comp.soft-sys.matlab:460974



"Joshua Fialkoff" <fialkj@rpi.edu> wrote in message
<ft1nph$5rv$1@fred.mathworks.com>...
> Hi all,
> Say we import an image into MATLAB.  I can print/export that
> image at the same resolution and using the same file type
> and have the same image (i.e., it will match the dimensions
> of the original).  Similarly, I can perform some operations
> directly on the matrix that represents the image and, again,
> export and get a similarly sized image.  The problem is
> this.  I would like to show the image using imshow and then
> overlay some shapes (e.g., bounding boxes, etc...) and then
> export the image such that it is similarly sized as the
> original.  I can't seem to figure out how to accomplish
> this.  If it helps I'm only working with B&W images, but a
> more generic solution is preferable.  Thanks in advance for
> you help.
> 
> - Josh

I have the same problem. My image is 5939 by 4639 pixels so
it is way too big for my screen when not zoomed. I read the
image and display it. Then I plot some non-trivial lines on
top of the image. Now I want to print the combined image
with lines to the same size file as the original ie 5939 by
4639. The image is true color.

Here is my thread:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/166433#423529

If anyone can solve both our problems that would be great,
thanks.
Dan