# How to change image data (2D matrix) from cartesian to polar coordinate system? [duplicate]

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 ?

• Feb 13 '18 at 5:56
• @Niki Estner..These links discuss how to change image only. I have a 2D matrix in cartesian coordinate system...I want to change that data into polar...
– RGG
Feb 13 '18 at 6:56
• What would be the expected output? Feb 13 '18 at 7:40
• @RGG: Turn the matrix into an image using Image, do a polar transform, then convert the result back into a matrix using ImageData. Some things in Mathematica are easier with Images and some are easier with matrices, so converting between the two representations is pretty common in image processing in Mathematica. Feb 13 '18 at 9:25