fixed defects in graph cuts
Merge pull request #2453 from Jiaolong/fix_defects

fixed defects in graph cuts