void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.StructuredEdgeDetection)) { LogError("owner is not initialized. Add Action \"newStructuredEdgeDetection\"."); return; } OpenCVForUnity.XimgprocModule.StructuredEdgeDetection wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.StructuredEdgeDetection, OpenCVForUnity.XimgprocModule.StructuredEdgeDetection>(owner); if (!(edge_image.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("edge_image is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_edge_image = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(edge_image); if (!(orientation_image.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("orientation_image is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_orientation_image = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(orientation_image); 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.edgesNms(wrapped_edge_image, wrapped_orientation_image, wrapped_dst, r.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.StructuredEdgeDetection)) { LogError("owner is not initialized. Add Action \"newStructuredEdgeDetection\"."); return; } OpenCVForUnity.XimgprocModule.StructuredEdgeDetection wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.StructuredEdgeDetection, OpenCVForUnity.XimgprocModule.StructuredEdgeDetection>(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); 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.computeOrientation(wrapped_src, wrapped_dst); }
public StructuredEdgeDetection(OpenCVForUnity.XimgprocModule.StructuredEdgeDetection nativeObj) : base(nativeObj) { }