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); wrapped_owner.buildMap(new OpenCVForUnity.CoreModule.Point((double)sourcePt_x.Value, (double)sourcePt_y.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 (!(sourcePt.Value is OpenCVForUnityPlayMakerActions.Point)) { LogError("sourcePt is not initialized. Add Action \"newPoint\"."); return; } OpenCVForUnity.CoreModule.Point wrapped_sourcePt = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Point, OpenCVForUnity.CoreModule.Point>(sourcePt); wrapped_owner.buildMap(wrapped_sourcePt); }