Implementation GraphCuts in OpenCV