Markov random field (MRF) theory provides a basis for modeling contextual constraints in visual processing and interpretation. Various vision models are presented in a unified framework, including image restoration and reconstruction, edge and region segmentation, texture, stereo and motion, object matching and recognition, and pose estimation.