How to transform Polar to cartesian
古いコメントを表示
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 件のコメント
Walter Roberson
2011 年 12 月 2 日
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
2011 年 12 月 2 日
Kareeman
2011 年 12 月 2 日
Kareeman
2011 年 12 月 2 日
Walter Roberson
2011 年 12 月 2 日
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
2011 年 12 月 2 日
回答 (1 件)
Sean de Wolski
2011 年 12 月 2 日
Perhaps pol2cart?
doc pol2cart
9 件のコメント
Kareeman
2011 年 12 月 2 日
Sean de Wolski
2011 年 12 月 2 日
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
2011 年 12 月 2 日
Kareeman
2011 年 12 月 2 日
Sean de Wolski
2011 年 12 月 2 日
So you want to find the coordinates of the edge of the blob?
Kareeman
2011 年 12 月 2 日
Walter Roberson
2011 年 12 月 2 日
invert the image to make the blob white, then use http://www.mathworks.com/help/toolbox/images/ref/bwtraceboundary.html bwtraceboundary
Kareeman
2011 年 12 月 2 日
Irena Chernova
2015 年 2 月 16 日
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!
カテゴリ
ヘルプ センター および File Exchange で Detect and Segment Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!