Hi!! I just recently did a task involving OpenCV and Python involving training a Haar Cascade on laptop cam feed and recognizing object. The same is doable using C++, but a bit lengthy and messy. So, I'd like to know your motivation, if anything strict, behind using C++. I also work with C++, but clients are quite less unless we want to port it to a hardware level runtime, not on a computer (as in your case), so.. And, I've MATLAB 2013, so I hope your algo is doable, and readable unless there's a inbuilt function usage that's only found after 2013...hope not :-) I have, separately, done phase based motion detection in MATLAB, about an year ago,,so I could make use of that, in that case, I guess...let's see...
Anyways, the things are possible. I'm on a linux machine. So, if you've anything else to know or share, do ping me whenever u r online. I'll reply ASAP, if not around. Thanks!!
Have a nice day!