Title: An efficient algorithm for finding connected components in a binary image