Path: news.mathworks.com!not-for-mail
From: "Sven " <sven.holcombe@removethis.gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Image pixel placement
Date: Thu, 7 Feb 2008 02:30:05 +0000 (UTC)
Organization: Japan Automobile Research Institute
Lines: 21
Message-ID: <fodqfd$bok$1@fred.mathworks.com>
Reply-To: "Sven " <sven.holcombe@removethis.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 1202351405 12052 172.30.248.37 (7 Feb 2008 02:30:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 7 Feb 2008 02:30:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 521344
Xref: news.mathworks.com comp.soft-sys.matlab:449780


Hi there,

Quoting the image help page:
IMAGE(X,Y,C), where X and Y are vectors, specifies the
locations of the pixel centers of C(1,1) and C(M,N). Element
C(1,1) is centered over (X(1), Y(1)), element C(M,N) is
centered over (X(end), Y(end)), and the pixel centers of the
remaining elements of C are spread out evenly between those
two points, so that the rectilinear patches are all of equal
width and height.

Is it possible to *not* have rectilinear patches?  Ie, I
want the placement of the pixel centers of C(i,j) to be
given by Y(i), X(j), rather than being spaced *linearly*
between the axis limits.  This is basically to display an
image with a variable resolution over its Y-axis.

Is this at all possible? Is there a simple method?

Cheers,
Sven.