Image Interpolation for Pattern Recognition