Thread Subject: Converting an image from polar to cartesians?

Subject: Converting an image from polar to cartesians?

From: petros dias

Date: 18 Jun, 2009 20:21:03

Message: 1 of 3

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.

Subject: Converting an image from polar to cartesians?

From: Nicolaie Popescu-Bodorin

Date: 19 Jun, 2009 01:08:01

Message: 2 of 3

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.

Subject: Converting an image from polar to cartesians?

From: petros dias

Date: 20 Jun, 2009 12:41:01

Message: 3 of 3

Thanks , but I already know how to perform that transformation, my question was on the usage of the interp2 algorithm and its' inputs.

Either way, I already found a function that works very well, provided here:

http://www.mathworks.com/matlabcentral/fileexchange/17933

"Nicolaie Popescu-Bodorin" <freeseosubmit@yah00.com> wrote in message <h1eodh$k7b$1@fred.mathworks.com>..."

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
function petros dias 20 Jun, 2009 08:44:04
rectangular petros dias 20 Jun, 2009 08:44:04
cartezian Nicolaie Popescu-Bodorin 18 Jun, 2009 21:09:06
polar Nicolaie Popescu-Bodorin 18 Jun, 2009 21:09:06
coordinate tran... Nicolaie Popescu-Bodorin 18 Jun, 2009 21:09:06
transformation petros dias 18 Jun, 2009 16:24:03
cartesian petros dias 18 Jun, 2009 16:24:03
polar petros dias 18 Jun, 2009 16:24:03
image petros dias 18 Jun, 2009 16:24:03
rssFeed for this Thread

Contact us at files@mathworks.com