How to change coordinates?
조회 수: 5 (최근 30일)
이전 댓글 표시
How to transfer image texture from Cartesian to polar coordinates? I know how to find theta or other mathematical part but in some image i saw researchers convert circle part to a rectangular part by transferring from cartesian coordinate to polar coordinate.
댓글 수: 0
답변 (1개)
Ashutosh
2013년 9월 6일
Do you mean to say you want to address using (r,theta) instead of x,y? (hope u didnt mean log polar) If yes, then code as:
r = sqrt(x^2 + y^2) theta = atan(y/x) (make sure x!=0, handle it directly)
Now, I(x,y) can be addressed as I(r,theta)
참고 항목
카테고리
Help Center 및 File Exchange에서 Cartesian Coordinate System Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!