Convert a 2D ndarray to log-polar coordinates