Numerical Optimization Methods For Image Processing And Machine Learning