Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Printing an image to scale
Date: Thu, 3 Apr 2008 04:52:01 +0000 (UTC)
Organization: RPI
Lines: 16
Message-ID: <ft1nph$5rv$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1207198321 6015 172.30.248.35 (3 Apr 2008 04:52:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 3 Apr 2008 04:52:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1287394
Xref: news.mathworks.com comp.soft-sys.matlab:460736



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