void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.EdgeDrawing)) { LogError("owner is not initialized. Add Action \"newEdgeDrawing\"."); return; } OpenCVForUnity.XimgprocModule.EdgeDrawing wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EdgeDrawing, OpenCVForUnity.XimgprocModule.EdgeDrawing>(owner); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.MatOfInt)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.MatOfInt(); } ((OpenCVForUnityPlayMakerActions.MatOfInt)storeResult.Value).wrappedObject = wrapped_owner.getSegmentIndicesOfLines(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.EdgeDrawing)) { LogError("owner is not initialized. Add Action \"newEdgeDrawing\"."); return; } OpenCVForUnity.XimgprocModule.EdgeDrawing wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EdgeDrawing, OpenCVForUnity.XimgprocModule.EdgeDrawing>(owner); List <OpenCVForUnity.CoreModule.MatOfPoint> wrapped_storeResult = wrapped_owner.getSegments(); if (!storeResult.IsNone) { OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.MatOfPoint, OpenCVForUnityPlayMakerActions.MatOfPoint>(wrapped_storeResult, storeResult); } }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.EdgeDrawing)) { LogError("owner is not initialized. Add Action \"newEdgeDrawing\"."); return; } OpenCVForUnity.XimgprocModule.EdgeDrawing wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EdgeDrawing, OpenCVForUnity.XimgprocModule.EdgeDrawing>(owner); if (!(src.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("src is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_src = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(src); wrapped_owner.detectEdges(wrapped_src); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.EdgeDrawing)) { LogError("owner is not initialized. Add Action \"newEdgeDrawing\"."); return; } OpenCVForUnity.XimgprocModule.EdgeDrawing wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EdgeDrawing, OpenCVForUnity.XimgprocModule.EdgeDrawing>(owner); if (!(parameters.Value is OpenCVForUnityPlayMakerActions.EdgeDrawing_Params)) { LogError("parameters is not initialized. Add Action \"newEdgeDrawing_Params\"."); return; } OpenCVForUnity.XimgprocModule.EdgeDrawing_Params wrapped_parameters = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EdgeDrawing_Params, OpenCVForUnity.XimgprocModule.EdgeDrawing_Params>(parameters); wrapped_owner.setParams(wrapped_parameters); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.EdgeDrawing)) { LogError("owner is not initialized. Add Action \"newEdgeDrawing\"."); return; } OpenCVForUnity.XimgprocModule.EdgeDrawing wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EdgeDrawing, OpenCVForUnity.XimgprocModule.EdgeDrawing>(owner); if (!(dst.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("dst is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_dst = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(dst); wrapped_owner.getGradientImage(wrapped_dst); }
public EdgeDrawing(OpenCVForUnity.XimgprocModule.EdgeDrawing nativeObj) : base(nativeObj) { }