Optimization for Computer Vision: An Introduction to