image segmentation using openCV