a linear - time component - labeling algorithm using contour tracing technique .
a general approach to connected - component labelling for arbitrary image representations .