C++, OpenCV, Matlab, Picture Segmentation