File Exchange

## Polar Coordinates Transform

version 1.0 (1.74 KB) by

Polar Coordinates Transform

Updated

This script is used to transform a given image from cartesian coordinates to polar coordinates.

MK

### MK (view profile)

THANK YOU,IT REALLY HELPS ME

Luju Patel

### Luju Patel (view profile)

I would be thankful if anyone give the example to run this code.

Claudio Coppola

### Claudio Coppola (view profile)

it's fantastic you've saved my Day!

i've modified a little the code to allow me to put a Center of coordinates, but it' has been very easy.
I Really thank you! :D

excellent.

Boris

### Boris (view profile)

There is an issue regarding the sampling with this approach. Since the code simply samples the closest value the result is heavily undersampled in some regions (r>>), while it is oversampled in others (r<<).
It would be interesting to have a correct approach that satisfies signal processing criteria (e.g. smooth oversampled regions and grey values where undersampled black and white values come together.

Aya Naguib

Tom Lampert

ji

### ji (view profile)

great,except the typo.

Catherine

### Catherine (view profile)

Hi all why i couldn't plot the polar image??and the image figure keep showing non-stop

Gavin Tan

### Gavin Tan (view profile)

Where is the function iapolarcoord ? This function is named as imgpolarcoord and it need three input.Is the other two inputs(radius and angle) don't need to enter?

C. Chaya

### C. Chaya (view profile)

Hi wahab --

%pcimg=iapolarcoord(im);-' %pcimg=impolarcoord(im); are both wrong.
The name of the m-file is imgpolarcoord , so you use imgpolarcoord(im)

wahab alaamri

### wahab alaamri (view profile)

%pcimg=iapolarcoord(im);-' it should be %pcimg=impolarcoord(im);
% fpcimg=iapolarcoord(fim);'it should be % fpcimg=impolarcoord(fim);
BOTH OF THEM DOES NOT WORK

%pcimg=iapolarcoord(im);-'

%pcimg=impolarcoord(im);

ANY ONE KNOW THE CORRECT CODE??

Ali Salem

It is an excellent code. I tested it.
Thank you very much, and if you have other codes please upload them!!
There is a typo in the example, at the third and fourth lines.
%pcimg=iapolarcoord(im);-' it should be %pcimg=impolarcoord(im);
% fpcimg=iapolarcoord(fim);'it should be % fpcimg=impolarcoord(fim);

Ali Salem

It is an excellent code. I tested it.
Thank you very much, and if you have other codes please upload them!!
There is a typo in the example, at the third and fourth lines.
%pcimg=iapolarcoord(im);-' %pcimg=impolarcoord(im);
% fpcimg=iapolarcoord(fim);' % fpcimg=impolarcoord(fim);

##### MATLAB Release
MATLAB 7.0.4 (R14SP2)
##### Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.