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!