How to change coordinates?
2 次查看(过去 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!