Polar coordinates of image.

4 vues (au cours des 30 derniers jours)
Stewart Tan
Stewart Tan le 6 Sep 2019
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.
Is it possible to use in Matlab instead of the normal ?

Réponses (2)

Jackson Burns
Jackson Burns le 7 Sep 2019
The function pol2cart might be what you are looking for.
  4 commentaires
Stewart Tan
Stewart Tan le 7 Sep 2019
Modifié(e) : Stewart Tan le 7 Sep 2019
@Walter Roberson, spot on!! the image function is multiplied by a rotation matrix. I've been trying to figure it out for weeks now.
Walter Roberson
Walter Roberson le 7 Sep 2019
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
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

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 7 Sep 2019
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)}) )

Catégories

En savoir plus sur Get Started with Image Processing Toolbox 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!

Translated by