Inference On Markov Random Fields: Methods And Applications