A matrix with 3 columns specifying the neighbourhood
system. Default is 6 nearest neighbours in 3D.
level.thr
The level at which to threshold the array
values. Default is 0.5 and is designed to cluster 0-1 arrays.
size.thr
The cluster size threshold.
Value
Returns an array of the same size as x with a 1 at all locations
which have a value above level.thr and are in a cluster of similiar
locations with size greater than size.thr.