Polar coordinates of image.
3 ビュー (過去 30 日間)
古いコメントを表示
So i have used the cart2pol() function to obtain the polar coordinates represented by
and θ. In a paper I'm analysing, it is said that the image function,
will be multiplied with a matrix.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237179/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237180/image.png)
Is it possible to use
in Matlab instead of the normal
?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237181/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237182/image.png)
0 件のコメント
回答 (2 件)
Jackson Burns
2019 年 9 月 7 日
4 件のコメント
Walter Roberson
2019 年 9 月 7 日
You will probably find that
is a function that produces
and
coordinate pairs, and that the rotation matrix operates on those to produce
and
coordinate pairs
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237276/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237277/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237278/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237279/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237280/image.png)
Rotation matrices can also be created in terms of polar coordinates
[r(:), theta(:), zeros(numel(r),1)] * [1 0 0; 0 1 dtheta; 0 0 1]
which would increate theta -> theta+dtheta ... though for that simple case it would typically be easier to just do theta = theta + dtheta
Walter Roberson
2019 年 9 月 7 日
If what you have is a formula in terms of x and y, and you need to convert it to polar, and you have the symbolic toolbox, then use
syms r theta
polar_formula = simplify( subs(YourFormula, {x, y}, {r*cos(theta), r*sin(theta)}) )
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!