optimization algorithms in computer vision