フィルターのクリア

How to change coordinates?

5 ビュー (過去 30 日間)
Umme Tania
Umme Tania 2013 年 9 月 6 日
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.

回答 (1 件)

Ashutosh
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)
  1 件のコメント
Umme Tania
Umme Tania 2013 年 9 月 6 日
Thank you, but i already done this part. Can u please read the question again.I edited the question.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCartesian Coordinate System Conversion についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by