Esempio n. 1
0
        //javadoc: createChiHistogramCostExtractor()
        public static HistogramCostExtractor createChiHistogramCostExtractor()
        {
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createChiHistogramCostExtractor_11());

            return(retVal);
#else
            return(null);
#endif
        }
Esempio n. 2
0
        //
        // C++:  Ptr_HistogramCostExtractor createEMDHistogramCostExtractor(int flag = DIST_L2, int nDummies = 25, float defaultCost = 0.2f)
        //

        //javadoc: createEMDHistogramCostExtractor(flag, nDummies, defaultCost)
        public static HistogramCostExtractor createEMDHistogramCostExtractor(int flag, int nDummies, float defaultCost)
        {
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createEMDHistogramCostExtractor_10(flag, nDummies, defaultCost));

            return(retVal);
#else
            return(null);
#endif
        }
        //
        // C++:  Ptr_HistogramCostExtractor createEMDHistogramCostExtractor(int flag = DIST_L2, int nDummies = 25, float defaultCost = 0.2f)
        //

        //javadoc: createEMDHistogramCostExtractor(flag, nDummies, defaultCost)
        public static HistogramCostExtractor createEMDHistogramCostExtractor(int flag, int nDummies, float defaultCost)
        {
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR) || UNITY_5
            HistogramCostExtractor retVal = new HistogramCostExtractor(shape_Shape_createEMDHistogramCostExtractor_10(flag, nDummies, defaultCost));

            return(retVal);
#else
            return(null);
#endif
        }
        //javadoc: createChiHistogramCostExtractor()
        public static HistogramCostExtractor createChiHistogramCostExtractor()
        {
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR) || UNITY_5
            HistogramCostExtractor retVal = new HistogramCostExtractor(shape_Shape_createChiHistogramCostExtractor_11());

            return(retVal);
#else
            return(null);
#endif
        }
        //
        // C++:  Ptr_HistogramCostExtractor getCostExtractor()
        //

        //javadoc: ShapeContextDistanceExtractor::getCostExtractor()
        public HistogramCostExtractor getCostExtractor()
        {
            ThrowIfDisposed();
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_ShapeContextDistanceExtractor_getCostExtractor_10(nativeObj));

            return(retVal);
#else
            return(null);
#endif
        }
        //
        // C++:  Ptr_HistogramCostExtractor getCostExtractor()
        //

        //javadoc: ShapeContextDistanceExtractor::getCostExtractor()
        public HistogramCostExtractor getCostExtractor()
        {
            ThrowIfDisposed();
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR) || UNITY_5
            HistogramCostExtractor retVal = new HistogramCostExtractor(shape_ShapeContextDistanceExtractor_getCostExtractor_10(nativeObj));

            return(retVal);
#else
            return(null);
#endif
        }
        //
        // C++:  void setCostExtractor(Ptr_HistogramCostExtractor comparer)
        //

        //javadoc: ShapeContextDistanceExtractor::setCostExtractor(comparer)
        public void setCostExtractor(HistogramCostExtractor comparer)
        {
            ThrowIfDisposed();
            if (comparer != null)
            {
                comparer.ThrowIfDisposed();
            }
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            shape_ShapeContextDistanceExtractor_setCostExtractor_10(nativeObj, comparer.getNativeObjAddr());

            return;
#else
            return;
#endif
        }
Esempio n. 8
0
        //
        // C++:  Ptr_ShapeContextDistanceExtractor createShapeContextDistanceExtractor(int nAngularBins = 12, int nRadialBins = 4, float innerRadius = 0.2f, float outerRadius = 2, int iterations = 3, Ptr_HistogramCostExtractor comparer = createChiHistogramCostExtractor(), Ptr_ShapeTransformer transformer = createThinPlateSplineShapeTransformer())
        //

        //javadoc: createShapeContextDistanceExtractor(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations, comparer, transformer)
        public static ShapeContextDistanceExtractor createShapeContextDistanceExtractor(int nAngularBins, int nRadialBins, float innerRadius, float outerRadius, int iterations, HistogramCostExtractor comparer, ShapeTransformer transformer)
        {
            if (comparer != null)
            {
                comparer.ThrowIfDisposed();
            }
            if (transformer != null)
            {
                transformer.ThrowIfDisposed();
            }
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            ShapeContextDistanceExtractor retVal = ShapeContextDistanceExtractor.__fromPtr__(shape_Shape_createShapeContextDistanceExtractor_10(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations, comparer.getNativeObjAddr(), transformer.getNativeObjAddr()));

            return(retVal);
#else
            return(null);
#endif
        }
        //
        // C++:  Ptr_ShapeContextDistanceExtractor createShapeContextDistanceExtractor(int nAngularBins = 12, int nRadialBins = 4, float innerRadius = 0.2f, float outerRadius = 2, int iterations = 3, Ptr_HistogramCostExtractor comparer = createChiHistogramCostExtractor(), Ptr_ShapeTransformer transformer = createThinPlateSplineShapeTransformer())
        //

        //javadoc: createShapeContextDistanceExtractor(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations, comparer, transformer)
        public static ShapeContextDistanceExtractor createShapeContextDistanceExtractor(int nAngularBins, int nRadialBins, float innerRadius, float outerRadius, int iterations, HistogramCostExtractor comparer, ShapeTransformer transformer)
        {
            if (comparer != null)
            {
                comparer.ThrowIfDisposed();
            }
            if (transformer != null)
            {
                transformer.ThrowIfDisposed();
            }

#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR) || UNITY_5
            ShapeContextDistanceExtractor retVal = new ShapeContextDistanceExtractor(shape_Shape_createShapeContextDistanceExtractor_10(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations, comparer.nativeObj, transformer.nativeObj));

            return(retVal);
#else
            return(null);
#endif
        }