For ``connectivity = 6'', a voxel will not be set to 0 if it is a local maximum in either the x , y, or z directions. For ``connectivity = 26'', the voxel must be a local maximum within its local 3x3x3 neighborhood.
The operation is typically used in conjunction with edges detection. For example, a typical edge-detection sequence is
connectivity = 6