I have a 2D matrix corresponding to the shown image in Cartesian coordinates. In image, the horizontal axis is x and vertical corresponds to y-axis. How to change this 2D matrix to polar coordinate system using mathematica ?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this community
Image
, do a polar transform, then convert the result back into a matrix usingImageData
. Some things in Mathematica are easier withImage
s and some are easier with matrices, so converting between the two representations is pretty common in image processing in Mathematica. $\endgroup$