1.0.0 • Published 11 years ago
ndarray-log-polar v1.0.0
ndarray-log-polar
Given a 2D ndarray, convert it from cartesian to log-polar coordinates.
Example
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'})API
require('ndarray-log-polar')(polar, rect[, center])
Converts an image from Cartesian to polar coordinates.
polargets the resulting image in polar coordinatesrectis the input cartesian coordinate imagecenteris an optional center for the cartesian coordinate image
Returns An image in polar coordinates
Credits
(c) 2014 Mikola Lysenko. MIT License
1.0.0
11 years ago