void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.legacy_TrackerCSRT)) { LogError("owner is not initialized. Add Action \"newlegacy_TrackerCSRT\"."); return; } OpenCVForUnity.TrackingModule.legacy_TrackerCSRT wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.legacy_TrackerCSRT, OpenCVForUnity.TrackingModule.legacy_TrackerCSRT>(owner); if (!(mask.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("mask is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_mask = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(mask); wrapped_owner.setInitialMask(wrapped_mask); }
public legacy_TrackerCSRT(OpenCVForUnity.TrackingModule.legacy_TrackerCSRT nativeObj) : base(nativeObj) { }