Mex files utilizing cuda, for use with image generation and interpolation