How to transform Polar to cartesian
Afficher commentaires plus anciens
Hi, I am a MATLAB beginner. I need the steps of how to transform polar coordinates to Cartesian. As I have 2D (jpeg)images for closed curve(organic shape an I need to convert it into an opened one. Many thanks for your help. Best regards
6 commentaires
Walter Roberson
le 2 Déc 2011
I do not think I understand how using polar coordinates to cartesian will help for the task?
Could you post a sample starting image and sample result?
http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
Kareeman
le 2 Déc 2011
Kareeman
le 2 Déc 2011
Kareeman
le 2 Déc 2011
Walter Roberson
le 2 Déc 2011
That curve "goes back on itself", and therefore cannot be a function in the polar coordinate system.
If it were in polar coordinate system, then there would have to be an origin point, but no such point is obvious. It is not clear to me, given that diagram, that choosing the centroid of the diagram would be a correct origin.
The connection to polar coordinates still escapes me.
Rather than converting polar to cartesian coordinates, are you perhaps looking to "cut" the image and "unroll" it? If so, then I am not certain you would gain anything compared to comparing it in the original space, but that would depend on how you were thinking to compare them.
Kareeman
le 2 Déc 2011
Réponses (1)
Sean de Wolski
le 2 Déc 2011
Perhaps pol2cart?
doc pol2cart
9 commentaires
Kareeman
le 2 Déc 2011
Sean de Wolski
le 2 Déc 2011
type "doc pol2cart" at the command line - it'll open the documentation for pol2cart. You could probably get more specific help if you post an image (to a free webhosting website) and provide any other sample data.
Welcome to MATLAB Answers!
Kareeman
le 2 Déc 2011
Kareeman
le 2 Déc 2011
Sean de Wolski
le 2 Déc 2011
So you want to find the coordinates of the edge of the blob?
Kareeman
le 2 Déc 2011
Walter Roberson
le 2 Déc 2011
invert the image to make the blob white, then use http://www.mathworks.com/help/toolbox/images/ref/bwtraceboundary.html bwtraceboundary
Kareeman
le 2 Déc 2011
Irena Chernova
le 16 Fév 2015
Hi Kareeman, I know that it´s not actual but I deal really with the same problem (draped samples of textile..) Could I ask you please, how did you solve it finally? Thanks a lot!
Catégories
En savoir plus sur Particle & Nuclear Physics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!