//
        // C++: static Ptr_VariationalRefinement cv::VariationalRefinement::create()
        //

        //javadoc: VariationalRefinement::create()
        public static VariationalRefinement create()
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            VariationalRefinement retVal = VariationalRefinement.__fromPtr__(video_VariationalRefinement_create_10());

            return(retVal);
#else
            return(null);
#endif
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.VariationalRefinement))
            {
                LogError("owner is not initialized. Add Action \"newVariationalRefinement\".");
                return;
            }
            OpenCVForUnity.VideoModule.VariationalRefinement wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.VariationalRefinement, OpenCVForUnity.VideoModule.VariationalRefinement>(owner);

            wrapped_owner.setGamma(val.Value);
        }
示例#3
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.VariationalRefinement))
            {
                LogError("owner is not initialized. Add Action \"newVariationalRefinement\".");
                return;
            }
            OpenCVForUnity.VideoModule.VariationalRefinement wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.VariationalRefinement, OpenCVForUnity.VideoModule.VariationalRefinement>(owner);

            storeResult.Value = wrapped_owner.getFixedPointIterations();
        }
示例#4
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.VariationalRefinement))
            {
                LogError("owner is not initialized. Add Action \"newVariationalRefinement\".");
                return;
            }
            OpenCVForUnity.VideoModule.VariationalRefinement wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.VariationalRefinement, OpenCVForUnity.VideoModule.VariationalRefinement>(owner);

            if (!(I0.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("I0 is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_I0 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(I0);

            if (!(I1.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("I1 is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_I1 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(I1);

            if (!(flow_u.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("flow_u is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_flow_u = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(flow_u);

            if (!(flow_v.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("flow_v is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_flow_v = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(flow_v);

            wrapped_owner.calcUV(wrapped_I0, wrapped_I1, wrapped_flow_u, wrapped_flow_v);
        }
示例#5
0
        //
        // C++: static Ptr_VariationalRefinement cv::VariationalRefinement::create()
        //

        /**
         * Creates an instance of VariationalRefinement
         * return automatically generated
         */
        public static VariationalRefinement create()
        {
            return(VariationalRefinement.__fromPtr__(video_VariationalRefinement_create_10()));
        }
示例#6
0
 public VariationalRefinement(OpenCVForUnity.VideoModule.VariationalRefinement nativeObj) : base(nativeObj)
 {
 }