How to change coordinates?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Ashutosh
le 6 Sep 2013
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)
Voir également
Catégories
En savoir plus sur Cartesian Coordinate System Conversion dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!