Image Utilities (IU)
|
COMPUTE_CAPABILITY
with the CC of your CUDA-enabled GPUCUDA_SDK_ROOT_DIR
to point to the NVidia CUDA examplesIMAGEUTILITIES_ROOT
to point to the path of this directoryMATLAB_ROOT
to point to matlab root directoryTo build simply perform the following steps:
A pre-built documentation is available here. To build the documentation on your own (requires doxygen), additionally do
In your cmake-based project include the following lines
and link your application with
Image Utilities take away the hassle of memory management when dealing with CUDA code. The follwing code snippet shows a simple example of image manipulation using CUDA:
They also make it easy to use images in CUDA kernels by providing additional information about the image that can be easily passed to kernels. Host code:
and the device code: