Connectivity and genus in three dimensions

Algorithms are presented for labeling connected objects in a binary three-dimensional array, for counting such objects, and for computing the genus of the array. (WRF)