title: connected components in OpenCV
body: <p>I am looking for an OpenCV function that can find connected components and perform a few tasks on them ( like getting the number of pixels, contour, list of pixels in the object etc.. )</p>
  
  <p>Is there a function of OpenCV (C++) that is similar to MatLab's regionprops ?</p>