How to use CUDA NPP library ?

I want to use the morphological image processing operations (dilation and erosion) which are provided by NPP library. What are the steps, the procedure I need to follow ? I am using Visual Studio 2013 with cuda 7.5.

Or at least I need help to understand how to use a library. Please help…

Try starting with and studying one of the NPP sample projects:

I still can’t understand how to take a image, perform dilation or erosion on that and get the output image.

You might want to read the NPP documentation and see what functions are available.

I don’t know what functions are involved in image dilation or erosion, or morphological image processing.

If you want someone to write the code for you, I wouldn’t be able to help you there.