Discrete optimization methods in computer vision