Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Origin in the center of an image, +y at the top!
Date: Tue, 2 Oct 2007 21:18:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <fducih$nku$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
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 1191359889 24222 172.30.248.35 (2 Oct 2007 21:18:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 2 Oct 2007 21:18:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:431084



I figured out how to move the origin, using this command:

imshow(InputImage, 'XData', [-size(InputImage,2)/2
size(InputImage,2)/2], 'YData', [size(InputImage,1)/2
-size(InputImage,1)/2])

however, that FLIPS my image!!  Is there a convenient way to
have (0,0) at the center of my image and have +y going up
and +x going to the right?

Thanks,

David