void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GeneralizedHough)) { LogError("owner is not initialized. Add Action \"newGeneralizedHough\"."); return; } OpenCVForUnity.ImgprocModule.GeneralizedHough wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GeneralizedHough, OpenCVForUnity.ImgprocModule.GeneralizedHough>(owner); if (!(image.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("image is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_image = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(image); if (!(positions.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("positions is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_positions = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(positions); wrapped_owner.detect(wrapped_image, wrapped_positions); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GeneralizedHough)) { LogError("owner is not initialized. Add Action \"newGeneralizedHough\"."); return; } OpenCVForUnity.ImgprocModule.GeneralizedHough wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GeneralizedHough, OpenCVForUnity.ImgprocModule.GeneralizedHough>(owner); if (!(templ.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("templ is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_templ = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(templ); if (!(templCenter.Value is OpenCVForUnityPlayMakerActions.Point)) { LogError("templCenter is not initialized. Add Action \"newPoint\"."); return; } OpenCVForUnity.CoreModule.Point wrapped_templCenter = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Point, OpenCVForUnity.CoreModule.Point>(templCenter); wrapped_owner.setTemplate(wrapped_templ, wrapped_templCenter); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GeneralizedHough)) { LogError("owner is not initialized. Add Action \"newGeneralizedHough\"."); return; } OpenCVForUnity.ImgprocModule.GeneralizedHough wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GeneralizedHough, OpenCVForUnity.ImgprocModule.GeneralizedHough>(owner); if (!(edges.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("edges is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_edges = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(edges); if (!(dx.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("dx is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_dx = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(dx); if (!(dy.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("dy is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_dy = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(dy); wrapped_owner.setTemplate(wrapped_edges, wrapped_dx, wrapped_dy); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GeneralizedHough)) { LogError("owner is not initialized. Add Action \"newGeneralizedHough\"."); return; } OpenCVForUnity.ImgprocModule.GeneralizedHough wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GeneralizedHough, OpenCVForUnity.ImgprocModule.GeneralizedHough>(owner); storeResult.Value = wrapped_owner.getCannyLowThresh(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GeneralizedHough)) { LogError("owner is not initialized. Add Action \"newGeneralizedHough\"."); return; } OpenCVForUnity.ImgprocModule.GeneralizedHough wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GeneralizedHough, OpenCVForUnity.ImgprocModule.GeneralizedHough>(owner); wrapped_owner.setMaxBufferSize(maxBufferSize.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GeneralizedHough)) { LogError("owner is not initialized. Add Action \"newGeneralizedHough\"."); return; } OpenCVForUnity.ImgprocModule.GeneralizedHough wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GeneralizedHough, OpenCVForUnity.ImgprocModule.GeneralizedHough>(owner); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Double)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Double(); } ((OpenCVForUnityPlayMakerActions.Double)storeResult.Value).wrappedObject = wrapped_owner.getDp(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.GeneralizedHough)) { LogError("owner is not initialized. Add Action \"newGeneralizedHough\"."); return; } OpenCVForUnity.ImgprocModule.GeneralizedHough wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.GeneralizedHough, OpenCVForUnity.ImgprocModule.GeneralizedHough>(owner); if (!(dp.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("dp is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_dp = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(dp); wrapped_owner.setDp(wrapped_dp); }
public GeneralizedHough(OpenCVForUnity.ImgprocModule.GeneralizedHough nativeObj) : base(nativeObj) { }