Optimizing two-pass connected-component labeling algorithms
a linear - time component - labeling algorithm using contour tracing technique .