public void ProcessFrame(UnmanagedImage frame)
{
if (SearchWindow.IsEmpty)
{
Reset(); return;
}
// Check if the tracker has been initialized
if (this.template == null)
{
// This frame contains the template
// and object we are trying to track
registerTemplate(frame, SearchWindow);
// update object position
updateObject(SearchWindow);
}
else
{
track(frame);
}
}