implementing grabcut .
Interactive Graph Cuts for Optimal Boundary and Region Segmentation of Objects in N-D Images