Path: news.mathworks.com!not-for-mail
From: "Nicolaie Popescu-Bodorin" <freeseosubmit@yah00.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Converting an image from polar to cartesians?
Date: Fri, 19 Jun 2009 01:08:01 +0000 (UTC)
Organization: 'SpiruHaret' University, Bucharest
Lines: 23
Message-ID: <h1eodh$k7b$1@fred.mathworks.com>
References: <h1e7jf$5lh$1@fred.mathworks.com>
Reply-To: "Nicolaie Popescu-Bodorin" <freeseosubmit@yah00.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 1245373681 20715 172.30.248.37 (19 Jun 2009 01:08:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 19 Jun 2009 01:08:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 872427
Xref: news.mathworks.com comp.soft-sys.matlab:548804

Hello Petros,

for something like this

http://www.limbistraine.com/ro/software/popescu-bodorin/img/circular-fast-fuzzy-iris-segmentation-popescu-bodorin-nicolaie.jpg

see the following link:

http://en.wikipedia.org/wiki/List_of_canonical_coordinate_transformations#To_Cartesian_coordinates_from_polar_coordinates

Bodorin


"petros dias" <p.dias@ucl.ac.uk> wrote in message <h1e7jf$5lh$1@fred.mathworks.com>...
> 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.