A Comparative Study of Energy Minimization Methods for Markov Random Fields with Smoothness-Based Priors