|
|
| File Information |
| Description |
This MEX performs 2d bilinear interpolation using an NVIDIA graphics chipset. To compile and run this software, one needs the NVIDIA CUDA Toolkit (http://www.nvidia.com/object/cuda_get.html) and, of course, an NVIDIA graphics card of reasonably modern vintage.
BUILDING INSTRUCTIONS: Change the 'MATLAB' (and if necessary, 'MEX') variables in the Makefile to appropriate values, then simply run 'make' at a prompt and an executable (mex/mexmac/mexmaci/dll?) file will be created.
This code uses your GPU's built-in bilinear texture interpolation capability, and is very fast. For reasonably sized operations (taking, say, a 50x50 matrix up to 1000x1000) CUDA-based code is 5-10x faster than linear interp2 (as tested on a MBP 2.4GHz C2D, GeForce 8600M GT).
With very (VERY) large matrices, however, it has the capability of completely crashing your computer or giving bizarre results. Be careful! |
| Acknowledgements |
This submission has inspired the following:
NVIDIA CUDA-based bilinear (2D) interpolation
|
| MATLAB release |
MATLAB 7.4 (R2007a)
|
| Other requirements |
NVIDIA CUDA Toolkit: http://www.nvidia.com/object/cuda_get.html
Tested on OSX 10.5, presumably works in Linux, perhaps Windows. |
| Zip File Content |
|
| Other Files |
cudainterp2/cudainterp2.cu, cudainterp2/cudainterp2.m, cudainterp2/cudainterp2.mexmaci, cudainterp2/Makefile, cudainterp2/nvmex, cudainterp2/nvopts.sh, cudainterp2/README, cudainterp2/testcudainterp2.m
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (6) |
| 12 Jun 2008 |
Scott Miller
|
|
|
| 14 Jun 2008 |
John D'Errico
|
|
|
| 15 Jun 2008 |
i scardanzan
|
|
|
| 16 Jun 2008 |
Alex Huth
|
|
|
| 28 Jun 2008 |
John D'Errico
|
|
|
| 16 Apr 2009 |
Gerald Buchgraber
|
|
|
| Updates |
| 16 Jun 2008 |
Cleaned up ZIP file, help. |
| 16 Jul 2008 |
Updated help, added test benchmarking script. |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com