Open a new project in Visual Studio (NVIDIA>CUDA)
Add image.cu, image.h, main.cpp in (replace kernel.cu with image.cu)
Run the program with two arguments: the source file (5 PGM files of different sizes provided above), and the target file (can be new)