Opencv image segmentation program