$ npm install ndarray-log-polarGiven a 2D ndarray, convert it from cartesian to log-polar coordinates.
var baboon = require('luminance')(require('baboon-image'))
var ndarray = require('ndarray')
var toPolar = require('ndarray-log-polar')
var imshow = require('ndarray-imshow')
imshow(ndarray(new Float64Array(256*256), [256,256]), baboon, {colormap: 'grey'})
require('ndarray-log-polar')(polar, rect[, center])Converts an image from Cartesian to polar coordinates.
polar gets the resulting image in polar coordinatesrect is the input cartesian coordinate imagecenter is an optional center for the cartesian coordinate imageReturns An image in polar coordinates
(c) 2014 Mikola Lysenko. MIT License