An efficient connected component labeling architecture for embedded systems