NVIDIA CUDA-based bilinear (2D) interpolation

Incredible speed boost in comparison to the Matlab implementation. (interp2)
3.9K Downloads
Updated 30 Jun 2009

View License

This code was inspired by Alexander Huth's bilinear interpolation approach
( http://www.mathworks.com/matlabcentral/fileexchange/20248 )
also using the GPU's built-in bilinear texture interpolation capability, which is indeed very fast.

The speedup is depending on your CUDA enabled graphics hardware. The more multiprocessors, texture units, ... the better the results will be.

In comparison to Alexander's cudainterp2, I added some performance improvements and the capability to interpolate complex numbers too.

Feel free to write some feedback or a comment.

Cite As

Gerald Buchgraber (2024). NVIDIA CUDA-based bilinear (2D) interpolation (https://www.mathworks.com/matlabcentral/fileexchange/23795-nvidia-cuda-based-bilinear-2d-interpolation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Interpolation in Help Center and MATLAB Answers
Acknowledgements

Inspired by: 2D CUDA-based bilinear interpolation

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.5.0.0

I fixed a typo and added tags.

1.4.0.0

License changed to BSD

1.3.0.0

added another picture showing the test results on a GeForce 8800 GTX. Much better results in comparision to my mobile GeForce ;)

1.1.0.0

description changed

1.0.0.0