コード例 #1
0
        //
        // 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)
 {
 }