detect all locations of touching connected components