Path: news.mathworks.com!not-for-mail
From: "jay vaughan" <jvaughan5.nospam@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: image overlay
Date: Wed, 14 May 2008 17:22:02 +0000 (UTC)
Organization: harvard
Lines: 24
Message-ID: <g0f73q$1sj$1@fred.mathworks.com>
Reply-To: "jay vaughan" <jvaughan5.nospam@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210785722 1939 172.30.248.37 (14 May 2008 17:22:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 14 May 2008 17:22:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1215048
Xref: news.mathworks.com comp.soft-sys.matlab:468374


Steve Eddins posted a nice file (link below) on the FEX
showing how to overlay a binary image on a base image. In
that example, pixels of the base image in RGB format (N x M
x 3) are replaced by the binary image. 

In my application, I am zooming in to images such that one
data pixel is displayed on perhaps 2-10 screen pixels (zoom
Z is 2-10). In that mode, a single overlay pixel becomes
also Z screen pixels wide/tall. Does anyone know a way to
generate overlays that uses the full resolution of the
screen even if the underlying data are zoomed in?

One perhaps inelegant idea is to resample the data to have Z
times more points along each edge, and then to overlay as
before with access to each individual pixel. But I suspect
that interpolating each RGB channel would be too time
consuming for my application and see it as a last resort.


Thanks,
J

[imoverlay from Steve Eddins]
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=10502&objectType=file