A parallel connected component labeling architecture for heterogeneous systems-on-chip