How to Compute Primal Solution from Dual MRF? Tom´