C++implementationofthegraphcutsalgorithminMRFoptimization,withaMATLABwrapper.