Stochastic Optimization for Learning-based Super-resolution: Algorithms and Applications