Globally Optimal Solutions for Energy Minimization in Stereo Vision Using Reweighted Belief Propagation