I wanted to read the code and then write it in detail. But if someone asks, post it first! Some problems encountered during code debugging.
First, you can download: http://download.csdn.net/detail/u012192662/8042147 here if you don't have code
Then you need to install opencv (I think if you're doing this you should have); eigen; http://download.csdn.net/detail/u012192662/8042155
The author's Code uses opencv V2.1 and eigen v2.0.15. There is no problem with opencv. It is okay for later versions, but you need to replace the additional libraries and so on (this is the basic operation of the ordinary opencv project ).
However, if eigen is using a later version of code, there will be problems.
The following error occurs: Fatal error c1189: # error: the eigen/array header does no longer exist in eigen3. all that functionality has moved to eigen/core. my practice is to locate the code and comment out this sentence. This section:
# Ifndef eigen2_support
# Error the eigen/array header does no longer exist in eigen3. all that functionality has moved to eigen/core.
# Endif
In addition, there is a m_pi definition problem. Just define it in the previous step.
There is also a cwise (). Min (X2). sum () error. Change to. cwisemin (X2). sum.
Now, you can adjust it. But if I don't have any lab data, give a link! Haha, I hope I can help you!
Iker cross
2014.
Target Tracking learning Series 10: struck: Structured output tracking with kernels code debugging