Scalable Matting I don't remember how any of this works, but loadProblem.m and getLevinLap.m are a good place to start looking.