Connected Component Analysis using OpenCV