Heap&Hogg's hand curve tracking particle filter [OpenCV,c++]