Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: convert to polar coordinate
Date: Thu, 20 May 2010 15:45:19 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <ht3lef$jt6$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1274370319 20390 172.30.248.38 (20 May 2010 15:45:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 20 May 2010 15:45:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2042085
Xref: news.mathworks.com comp.soft-sys.matlab:637650

hi...
I want to make sure if my way is correct to convert my image to polar coordinate or not,
If not please tell me the correct way.

img=imread(imageName);
img= imresize(img, [500 500]);
% find the Cartesian coordinate 
[x,y]=find(img);
% convert from Cartesian to polar
[theta,radius]=cart2pol(x,y); %The arrays X and Y must be the same size that why I use imresize


1- but how I know the best size for all my images to resize them??
2- how can I get the polar image as a matrix from [theta,radius] because I want use the image after get its polar coordinate?