Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Printing an image to scale
Date: Thu, 3 Apr 2008 14:39:02 +0000 (UTC)
Organization: RPI
Lines: 14
Message-ID: <ft2q66$aj8$1@fred.mathworks.com>
References: <ft1nph$5rv$1@fred.mathworks.com> <ft1ruq$mct$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 1207233542 10856 172.30.248.35 (3 Apr 2008 14:39:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 3 Apr 2008 14:39:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1287394
Xref: news.mathworks.com comp.soft-sys.matlab:460842



Thanks for the help.  I don't think this is accomplishing
what I'm looking for.  I performed the following:

img = imread('somefile.tif');
imshow(img);
rectangle('position', [0 0 100 100]);
img2 = get(findobj('type','image'), 'cdata');
imshow(img2);

The result is the original image.  What I desire is a
composite image (i.e., an image that is somefile.tif with a
square overlaid).

- Josh