Code taken from Max's answer to this question on Stack Overflow. http://stackoverflow.com/questions/12924598/examples-to-convert-image-to-polar-coordinates-do-it-explicitly-want-a-slick-m
This function takes an input image of any dimension and outputs the image in polar coordinate representation.
rectImage2Polar(image) image can be any RGB array.
[imagesPolar,imagesPolarCropped] imagesPolar maintains the full resolution of the polar image and leaves a white background to fill the image to a square. images PolarCropped crops the image so no background filling is needed.