Gradient Based Edge Preserving Interpolation and Its Application to Super-Resolution