void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BackgroundSubtractorGSOC)) { LogError("owner is not initialized. Add Action \"newBackgroundSubtractorGSOC\"."); return; } OpenCVForUnity.BgsegmModule.BackgroundSubtractorGSOC wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BackgroundSubtractorGSOC, OpenCVForUnity.BgsegmModule.BackgroundSubtractorGSOC>(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 (!(fgmask.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("fgmask is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_fgmask = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(fgmask); if (!(learningRate.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("learningRate is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_learningRate = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(learningRate); wrapped_owner.apply(wrapped_image, wrapped_fgmask, wrapped_learningRate); }
//javadoc: createBackgroundSubtractorGSOC() public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC() { #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_111()); return(retVal); #else return(null); #endif }
//javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate) public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC(int mc, int nSamples, float replaceRate) { #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_18(mc, nSamples, replaceRate)); return(retVal); #else return(null); #endif }
//javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha) public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC(int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha) { #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_15(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha)); return(retVal); #else return(null); #endif }
//javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta, blinkingSupressionDecay, blinkingSupressionMultiplier, noiseRemovalThresholdFacBG) public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC(int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta, float blinkingSupressionDecay, float blinkingSupressionMultiplier, float noiseRemovalThresholdFacBG) { #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_11(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta, blinkingSupressionDecay, blinkingSupressionMultiplier, noiseRemovalThresholdFacBG)); return(retVal); #else return(null); #endif }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BackgroundSubtractorGSOC)) { LogError("owner is not initialized. Add Action \"newBackgroundSubtractorGSOC\"."); return; } OpenCVForUnity.BgsegmModule.BackgroundSubtractorGSOC wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BackgroundSubtractorGSOC, OpenCVForUnity.BgsegmModule.BackgroundSubtractorGSOC>(owner); if (!(backgroundImage.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("backgroundImage is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_backgroundImage = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(backgroundImage); wrapped_owner.getBackgroundImage(wrapped_backgroundImage); }
public BackgroundSubtractorGSOC(OpenCVForUnity.BgsegmModule.BackgroundSubtractorGSOC nativeObj) : base(nativeObj) { }