Box convolution
optimize 3D box convolution using running sum
Optimize box filter by using a separate pass to accumulate over Z
Compute 3D distance field