anisotropic neighborhoods, 3d only so far
add 2d support