Exemple #1
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
        }
Exemple #2
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
        }
        //
        // 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
        }