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); wrapped_owner.clearGraphSegmentations(); }
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 (!(rects.Value is OpenCVForUnityPlayMakerActions.MatOfRect)) { LogError("rects is not initialized. Add Action \"newMatOfRect\"."); return; } OpenCVForUnity.CoreModule.MatOfRect wrapped_rects = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfRect, OpenCVForUnity.CoreModule.MatOfRect>(rects); wrapped_owner.process(wrapped_rects); }
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 (!(img.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("img is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_img = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(img); wrapped_owner.setBaseImage(wrapped_img); }
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 (!(s.Value is OpenCVForUnityPlayMakerActions.SelectiveSearchSegmentationStrategy)) { LogError("s is not initialized. Add Action \"newSelectiveSearchSegmentationStrategy\"."); return; } OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentationStrategy wrapped_s = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SelectiveSearchSegmentationStrategy, OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentationStrategy>(s); wrapped_owner.addStrategy(wrapped_s); }
public SelectiveSearchSegmentation(OpenCVForUnity.XimgprocModule.SelectiveSearchSegmentation nativeObj) : base(nativeObj) { }