“…Among others, there are (1) bit-quad-based algorithm proposed by Gray [12], which calculates the Euler number by counting certain 2 × 2 pixel patterns called bit-quads and is adopted by the famous commercial image processing tools MAT-LAB [13]; (2) run-based algorithm [14], which calculates the Euler number by use of the numbers of runs and the neighboring runs in the image; (3) labeling-based algorithm proposed by He, Chao and Suzuki [15], which calculates the Euler number by labeling connected components and holes in the image; (4) an improved bit-quad-based algorithm proposed [16], which reduces the number of pixels to be checked for processing a bit-quad from 4 to 2; and (5) graphbased algorithm [17], which calculates the Euler number by use of graph theory, and only needs to check 1.875 pixels for processing a bit-quad on average. For convenience, we refer the algorithms proposed in Refs.…”