public class NumberTouchingVoxelFaces extends TouchingVoxels
A scheme for counting the touching voxels by intersection of object-masks

Specifically, one of the object-masks is dilated, and count the number of intersecting pixels with another object.

However, intersection(a*,b)!=intersection(a,b*) where * is the dilation operator. Different counts occur as a single-voxel can have multiple edges with the neighbor.

So it's better if we can iterate with a kernel over the edge pixels, and count the number of neighbors

We do this only where the bounding-boxes (dilated by 1 pixels) intersection. So as not to waste computation-time in useless areas.

Author:
Owen Feehan