`ratio` was previously multiplied by `step` here but I moved this inside the cython code, dividing the spatial distance by `step` instead. This is because the original way wasn't working very well with SLIC-zero. But there could be a way to move it back here.