An efficient hardware-oriented single-pass approach for connected component analysis