I need to perform a very special type of video interpolation which produces 2x larger 2D block of video data in floating point format.New pixels in an upscaled both horizontally and vertically image should be a sum of neighbors and original pixels values should be preserved in interpolated image as well. That operation for a single row of 2D data block might be illustarted as follows:
1 3 5 7 ----> 1 4 3 8 5 12 7 7
After all rows in 2D block are interpolated that way, I need to do the same in vertical.
I don't see a good fit in IPP library for such custom processing, so I'd appreciate any suggestions.