How to transform Polar to cartesian
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 2 Dez. 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
am 2 Dez. 2011
Kareeman
am 2 Dez. 2011
Kareeman
am 2 Dez. 2011
Walter Roberson
am 2 Dez. 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
am 2 Dez. 2011
Antworten (1)
Sean de Wolski
am 2 Dez. 2011
Perhaps pol2cart?
doc pol2cart
9 Kommentare
Kareeman
am 2 Dez. 2011
Sean de Wolski
am 2 Dez. 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
am 2 Dez. 2011
Kareeman
am 2 Dez. 2011
Sean de Wolski
am 2 Dez. 2011
So you want to find the coordinates of the edge of the blob?
Kareeman
am 2 Dez. 2011
Walter Roberson
am 2 Dez. 2011
invert the image to make the blob white, then use http://www.mathworks.com/help/toolbox/images/ref/bwtraceboundary.html bwtraceboundary
Kareeman
am 2 Dez. 2011
Irena Chernova
am 16 Feb. 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!
Kategorien
Mehr zu Detect and Segment Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!