void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.VariationalRefinement)) { LogError("owner is not initialized. Add Action \"newVariationalRefinement\"."); return; } OpenCVForUnity.VideoModule.VariationalRefinement wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.VariationalRefinement, OpenCVForUnity.VideoModule.VariationalRefinement>(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_u.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("flow_u is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_flow_u = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(flow_u); if (!(flow_v.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("flow_v is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_flow_v = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(flow_v); wrapped_owner.calcUV(wrapped_I0, wrapped_I1, wrapped_flow_u, wrapped_flow_v); }