示例#1
0
        //
        // C++:  void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addStrategy(Ptr_SelectiveSearchSegmentationStrategy s)
        //

        /**
         * Add a new strategy in the list of strategy to process.
         *                                 param s The strategy
         */
        public void addStrategy(SelectiveSearchSegmentationStrategy s)
        {
            ThrowIfDisposed();
            if (s != null)
            {
                s.ThrowIfDisposed();
            }

            ximgproc_SelectiveSearchSegmentation_addStrategy_10(nativeObj, s.getNativeObjAddr());
        }
        //
        // C++:  void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addStrategy(Ptr_SelectiveSearchSegmentationStrategy s)
        //

        //javadoc: SelectiveSearchSegmentation::addStrategy(s)
        public void addStrategy(SelectiveSearchSegmentationStrategy s)
        {
            ThrowIfDisposed();
            if (s != null)
            {
                s.ThrowIfDisposed();
            }
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            ximgproc_SelectiveSearchSegmentation_addStrategy_10(nativeObj, s.getNativeObjAddr());

            return;
#else
            return;
#endif
        }
示例#3
0
        //
        // C++:  void cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyMultiple::addStrategy(Ptr_SelectiveSearchSegmentationStrategy g, float weight)
        //

        //javadoc: SelectiveSearchSegmentationStrategyMultiple::addStrategy(g, weight)
        public void addStrategy(SelectiveSearchSegmentationStrategy g, float weight)
        {
            ThrowIfDisposed();
            if (g != null)
            {
                g.ThrowIfDisposed();
            }
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            ximgproc_SelectiveSearchSegmentationStrategyMultiple_addStrategy_10(nativeObj, g.getNativeObjAddr(), weight);

            return;
#else
            return;
#endif
        }
        //
        // C++:  void cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategyMultiple::addStrategy(Ptr_SelectiveSearchSegmentationStrategy g, float weight)
        //

        /**
         * Add a new sub-strategy
         *                                 param g The strategy
         *                                 param weight The weight of the strategy
         */
        public void addStrategy(SelectiveSearchSegmentationStrategy g, float weight)
        {
            ThrowIfDisposed();
            if (g != null)
            {
                g.ThrowIfDisposed();
            }

            ximgproc_SelectiveSearchSegmentationStrategyMultiple_addStrategy_10(nativeObj, g.getNativeObjAddr(), weight);
        }