add cpp file make it work with OpenCV-2.4.2