Пример #1
0
        //
        // C++: static Ptr_Plot2d cv::plot::Plot2d::create(Mat data)
        //

        /**
         * Creates Plot2d object
         *
         * param data \(1xN\) or \(Nx1\) matrix containing \(Y\) values of points to plot. \(X\) values
         * will be equal to indexes of correspondind elements in data matrix.
         * return automatically generated
         */
        public static Plot2d create(Mat data)
        {
            if (data != null)
            {
                data.ThrowIfDisposed();
            }

            return(Plot2d.__fromPtr__(plot_Plot2d_create_10(data.nativeObj)));
        }
Пример #2
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Plot2d))
            {
                LogError("owner is not initialized. Add Action \"newPlot2d\".");
                return;
            }
            OpenCVForUnity.PlotModule.Plot2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Plot2d, OpenCVForUnity.PlotModule.Plot2d>(owner);

            wrapped_owner.setMinX((float)_plotMinX.Value);
        }
Пример #3
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Plot2d))
            {
                LogError("owner is not initialized. Add Action \"newPlot2d\".");
                return;
            }
            OpenCVForUnity.PlotModule.Plot2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Plot2d, OpenCVForUnity.PlotModule.Plot2d>(owner);

            wrapped_owner.setPlotAxisColor(new OpenCVForUnity.CoreModule.Scalar((double)_plotAxisColor_v0.Value, (double)_plotAxisColor_v1.Value, (double)_plotAxisColor_v2.Value, (double)_plotAxisColor_v3.Value));
        }
Пример #4
0
        //
        // C++: static Ptr_Plot2d cv::plot::Plot2d::create(Mat dataX, Mat dataY)
        //

        /**
         * Creates Plot2d object
         *
         * param dataX \(1xN\) or \(Nx1\) matrix \(X\) values of points to plot.
         * param dataY \(1xN\) or \(Nx1\) matrix containing \(Y\) values of points to plot.
         * return automatically generated
         */
        public static Plot2d create(Mat dataX, Mat dataY)
        {
            if (dataX != null)
            {
                dataX.ThrowIfDisposed();
            }
            if (dataY != null)
            {
                dataY.ThrowIfDisposed();
            }

            return(Plot2d.__fromPtr__(plot_Plot2d_create_11(dataX.nativeObj, dataY.nativeObj)));
        }
Пример #5
0
        //
        // C++: static Ptr_Plot2d cv::plot::Plot2d::create(Mat data)
        //

        //javadoc: Plot2d::create(data)
        public static Plot2d create(Mat data)
        {
            if (data != null)
            {
                data.ThrowIfDisposed();
            }
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            Plot2d retVal = Plot2d.__fromPtr__(plot_Plot2d_create_10(data.nativeObj));

            return(retVal);
#else
            return(null);
#endif
        }
Пример #6
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Plot2d))
            {
                LogError("owner is not initialized. Add Action \"newPlot2d\".");
                return;
            }
            OpenCVForUnity.PlotModule.Plot2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Plot2d, OpenCVForUnity.PlotModule.Plot2d>(owner);

            if (!(_plotAxisColor.Value is OpenCVForUnityPlayMakerActions.Scalar))
            {
                LogError("_plotAxisColor is not initialized. Add Action \"newScalar\".");
                return;
            }
            OpenCVForUnity.CoreModule.Scalar wrapped__plotAxisColor = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Scalar, OpenCVForUnity.CoreModule.Scalar>(_plotAxisColor);

            wrapped_owner.setPlotAxisColor(wrapped__plotAxisColor);
        }
Пример #7
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Plot2d))
            {
                LogError("owner is not initialized. Add Action \"newPlot2d\".");
                return;
            }
            OpenCVForUnity.PlotModule.Plot2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Plot2d, OpenCVForUnity.PlotModule.Plot2d>(owner);

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

            wrapped_owner.render(wrapped__plotResult);
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Plot2d))
            {
                LogError("owner is not initialized. Add Action \"newPlot2d\".");
                return;
            }
            OpenCVForUnity.PlotModule.Plot2d wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Plot2d, OpenCVForUnity.PlotModule.Plot2d>(owner);

            if (!(_plotMaxY.Value is OpenCVForUnityPlayMakerActions.Double))
            {
                LogError("_plotMaxY is not initialized. Add Action \"newDouble\".");
                return;
            }
            System.Double wrapped__plotMaxY = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(_plotMaxY);

            wrapped_owner.setMaxY(wrapped__plotMaxY);
        }
 public Plot2d(OpenCVForUnity.PlotModule.Plot2d nativeObj) : base(nativeObj)
 {
 }