"proposed digital connectivity such as 4-connectivity and 8-connectivity in two dimensions as well as 6-connectivity and 26-connectivity in three dimensions.The labeling method for inferring a connected component was studied in the 1970s.