Class NeighborhoodFactory

Object
NeighborhoodFactory

public class NeighborhoodFactory extends Object
Creates either a big voxel-neighborhood or a small voxel-neighborhood.

In two dimensions, a big voxel neighborhood is 8-connected, and a small neighborhood is 4-connected.

In three dimensions, a big voxel neighborhood is 26-connected, and a small neighborhood is 6-connected.

Author:
Owen Feehan
See Also:
  • Method Details

    • of

      public static Neighborhood of(boolean big)
      Gets an appropriate neighborhood
      Parameters:
      big - if true, a big neighborhood, if false a small one
      Returns:
      the neighborhood