ImageTracking_MotionExtend¶
演示如何从图像扩展跟踪。
sample在图像跟踪丢失后利用VIO能力继续保持跟踪并在场景中保留3d内容。
用法¶

ImageTrackerStart/ImageTrackerStop:是否启动ImageTracker。
详解¶
在图像跟踪丢失时使用运动跟踪¶
这个sample展示了在图像跟踪丢失时继续跟踪的一种方法。sample同时使用一个 ImageTracker 和一个 VIOCameraDevice 。
当image target被检测到,图像跟踪开始工作,而当图像跟踪丢失时,运动跟踪继续工作。

设置 ImageTargetController.ActiveControl 为 ActiveControlStrategy.HideBeforeFirstFound ,这样在图像跟踪丢失后 target也不会隐藏。

关闭图像跟踪的选项¶
图像跟踪可以通过 ImageTrackerFrameFilter.enabled 来控制。这个sample展示了在运动跟踪持续运行时手动控制图像跟踪功能的可能性。如果你打算使用图像target作为触发器并在后续执行中使用运动跟踪,这种情况下停止图像跟踪通常是很有用的。重新启动图像跟踪可以在图像target被跟踪后消除VIO漂移。
