I use OpenCV 2.4.9 with Cuda support, for visual results visit https://www.youtube.com/watch?v=7m6UqPIZPyU&feature=youtu.be