Forked from http://robotblogging.blogspot.mx/2013/10/gpu-accelerated-camera-processing-on.html