Completed the implementation of the OpenCV optical flow algorithm, fixed some issues, refactored code according to code conventions and added a test of a trackbar for the gui.