Libfreenect2 The Protonect.cpp function is a modified version of the Protonect.cpp file present in the libfreenect2/examples. Here, I have added the extra feature of grabbing the image and storing it as an image file using OpenCV.