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 (!(storeResult.Value is OpenCVForUnityPlayMakerActions.IntelligentScissorsMB)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.IntelligentScissorsMB(); } ((OpenCVForUnityPlayMakerActions.IntelligentScissorsMB)storeResult.Value).wrappedObject = wrapped_owner.setEdgeFeatureCannyParameters((float)threshold1.Value, (float)threshold2.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 (!(threshold1.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("threshold1 is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_threshold1 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(threshold1); if (!(threshold2.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("threshold2 is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_threshold2 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(threshold2); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.IntelligentScissorsMB)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.IntelligentScissorsMB(); } ((OpenCVForUnityPlayMakerActions.IntelligentScissorsMB)storeResult.Value).wrappedObject = wrapped_owner.setEdgeFeatureCannyParameters(wrapped_threshold1, wrapped_threshold2, apertureSize.Value); }