File Exchange

image thumbnail

Polar Coordinates Transform

version 1.0 (1.74 KB) by

Polar Coordinates Transform

22 Downloads

Updated

No License

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

Comments and Ratings (15)

MK

MK (view profile)

THANK YOU,IT REALLY HELPS ME

Luju Patel

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

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

Arkadi

Arkadi (view profile)

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

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

Gavin Tan

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

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

%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??

sarhat adam

no comments

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)

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

» Watch video