Path: news.mathworks.com!not-for-mail
From: "petros dias" <p.dias@ucl.ac.uk>
Newsgroups: comp.soft-sys.matlab
Subject: Converting an image from polar to cartesians?
Date: Thu, 18 Jun 2009 20:21:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <h1e7jf$5lh$1@fred.mathworks.com>
Reply-To: "petros dias" <p.dias@ucl.ac.uk>
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 1245356463 5809 172.30.248.37 (18 Jun 2009 20:21:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 18 Jun 2009 20:21:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1874569
Xref: news.mathworks.com comp.soft-sys.matlab:548747

Hi everyone,

I'm trying to convert an image from polar to cartesian coordinates. I am assuming my polar image is an image that has a 0,0 at top-left and the two dimensions do need to match (the horizontal being the radius and the vertical being theta).

I am using "interp2" to interpolate all the positions in the cartesian coordinates. Using this function, I would need to provide X,Y, XI,YI, while X,Y being the indices of the location of the pixels provided, while XI, YI the indices of the positions that need to be calculated.

I tried different ways to make this work, but I can't get it to work. Does anyone have a clue on how to do this? I even found another ready function that does this transformation, but I would still need to provide X,Y, XI, YI, which I don't know how to calculate.

Any help is appreciated.