void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.DenseOpticalFlow)) { LogError("owner is not initialized. Add Action \"newDenseOpticalFlow\"."); return; } OpenCVForUnity.VideoModule.DenseOpticalFlow wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.DenseOpticalFlow, OpenCVForUnity.VideoModule.DenseOpticalFlow>(owner); if (!(I0.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("I0 is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_I0 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(I0); if (!(I1.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("I1 is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_I1 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(I1); if (!(flow.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("flow is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_flow = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(flow); wrapped_owner.calc(wrapped_I0, wrapped_I1, wrapped_flow); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.DenseOpticalFlow)) { LogError("owner is not initialized. Add Action \"newDenseOpticalFlow\"."); return; } OpenCVForUnity.VideoModule.DenseOpticalFlow wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.DenseOpticalFlow, OpenCVForUnity.VideoModule.DenseOpticalFlow>(owner); wrapped_owner.collectGarbage(); }
public DenseOpticalFlow(OpenCVForUnity.VideoModule.DenseOpticalFlow nativeObj) : base(nativeObj) { }