void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GraphSegmentation)) { LogError("owner is not initialized. Add Action \"newGraphSegmentation\"."); return; } OpenCVForUnity.XimgprocModule.GraphSegmentation wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GraphSegmentation, OpenCVForUnity.XimgprocModule.GraphSegmentation>(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.processImage(wrapped_src, wrapped_dst); }
// // C++: void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addGraphSegmentation(Ptr_GraphSegmentation g) // /** * Add a new graph segmentation in the list of graph segementations to process. * param g The graph segmentation */ public void addGraphSegmentation(GraphSegmentation g) { ThrowIfDisposed(); if (g != null) { g.ThrowIfDisposed(); } ximgproc_SelectiveSearchSegmentation_addGraphSegmentation_10(nativeObj, g.getNativeObjAddr()); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GraphSegmentation)) { LogError("owner is not initialized. Add Action \"newGraphSegmentation\"."); return; } OpenCVForUnity.XimgprocModule.GraphSegmentation wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GraphSegmentation, OpenCVForUnity.XimgprocModule.GraphSegmentation>(owner); wrapped_owner.setK(k.Value); }
// // C++: void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addGraphSegmentation(Ptr_GraphSegmentation g) // //javadoc: SelectiveSearchSegmentation::addGraphSegmentation(g) public void addGraphSegmentation(GraphSegmentation g) { ThrowIfDisposed(); if (g != null) { g.ThrowIfDisposed(); } #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER ximgproc_SelectiveSearchSegmentation_addGraphSegmentation_10(nativeObj, g.getNativeObjAddr()); return; #else return; #endif }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GraphSegmentation)) { LogError("owner is not initialized. Add Action \"newGraphSegmentation\"."); return; } OpenCVForUnity.XimgprocModule.GraphSegmentation wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GraphSegmentation, OpenCVForUnity.XimgprocModule.GraphSegmentation>(owner); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Double)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Double(); } ((OpenCVForUnityPlayMakerActions.Double)storeResult.Value).wrappedObject = wrapped_owner.getSigma(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SelectiveSearchSegmentation)) { LogError("owner is not initialized. Add Action \"newSelectiveSearchSegmentation\"."); return; } OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SelectiveSearchSegmentation, OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation>(owner); if (!(g.Value is OpenCVForUnityPlayMakerActions.GraphSegmentation)) { LogError("g is not initialized. Add Action \"newGraphSegmentation\"."); return; } OpenCVForUnity.XimgprocModule.GraphSegmentation wrapped_g = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GraphSegmentation, OpenCVForUnity.XimgprocModule.GraphSegmentation>(g); wrapped_owner.addGraphSegmentation(wrapped_g); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GraphSegmentation)) { LogError("owner is not initialized. Add Action \"newGraphSegmentation\"."); return; } OpenCVForUnity.XimgprocModule.GraphSegmentation wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GraphSegmentation, OpenCVForUnity.XimgprocModule.GraphSegmentation>(owner); if (!(sigma.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("sigma is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_sigma = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(sigma); wrapped_owner.setSigma(wrapped_sigma); }
public GraphSegmentation(OpenCVForUnity.XimgprocModule.GraphSegmentation nativeObj) : base(nativeObj) { }