Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Printing an image to scale
Date: Thu, 3 Apr 2008 12:36:33 -0400
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <ft312h$49e$1@fred.mathworks.com>
References: <ft1nph$5rv$1@fred.mathworks.com> <ft1ruq$mct$1@fred.mathworks.com> <ft2q66$aj8$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1207240593 4398 144.212.105.187 (3 Apr 2008 16:36:33 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 3 Apr 2008 16:36:33 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:460865




"Joshua Fialkoff" <fialkj@rpi.edu> wrote in message 
news:ft2q66$aj8$1@fred.mathworks.com...
> 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).

You might want to look at the GETFRAME or PRINT functions.  [PRINT to an 
image file, then read in the image to get the modified data back into 
MATLAB.]

-- 
Steve Lord
slord@mathworks.com