void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.IntelligentScissorsMB)) { LogError("owner is not initialized. Add Action \"newIntelligentScissorsMB\"."); return; } OpenCVForUnity.ImgprocModule.IntelligentScissorsMB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.IntelligentScissorsMB, OpenCVForUnity.ImgprocModule.IntelligentScissorsMB>(owner); if (!(targetPt.Value is OpenCVForUnityPlayMakerActions.Point)) { LogError("targetPt is not initialized. Add Action \"newPoint\"."); return; } OpenCVForUnity.CoreModule.Point wrapped_targetPt = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Point, OpenCVForUnity.CoreModule.Point>(targetPt); if (!(contour.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("contour is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_contour = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(contour); wrapped_owner.getContour(wrapped_targetPt, wrapped_contour, backward.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.IntelligentScissorsMB)) { LogError("owner is not initialized. Add Action \"newIntelligentScissorsMB\"."); return; } OpenCVForUnity.ImgprocModule.IntelligentScissorsMB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.IntelligentScissorsMB, OpenCVForUnity.ImgprocModule.IntelligentScissorsMB>(owner); if (!(contour.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("contour is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_contour = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(contour); wrapped_owner.getContour(new OpenCVForUnity.CoreModule.Point((double)targetPt_x.Value, (double)targetPt_y.Value), wrapped_contour); }