示例#1
0
        //
        // C++:  Ptr_ShapeTransformer cv::ShapeContextDistanceExtractor::getTransformAlgorithm()
        //

        //javadoc: ShapeContextDistanceExtractor::getTransformAlgorithm()
        public ShapeTransformer getTransformAlgorithm()
        {
            ThrowIfDisposed();
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            ShapeTransformer retVal = ShapeTransformer.__fromPtr__(shape_ShapeContextDistanceExtractor_getTransformAlgorithm_10(nativeObj));

            return(retVal);
#else
            return(null);
#endif
        }
示例#2
0
        //
        // C++:  void cv::ShapeContextDistanceExtractor::setTransformAlgorithm(Ptr_ShapeTransformer transformer)
        //

        //javadoc: ShapeContextDistanceExtractor::setTransformAlgorithm(transformer)
        public void setTransformAlgorithm(ShapeTransformer transformer)
        {
            ThrowIfDisposed();
            if (transformer != null)
            {
                transformer.ThrowIfDisposed();
            }
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            shape_ShapeContextDistanceExtractor_setTransformAlgorithm_10(nativeObj, transformer.getNativeObjAddr());

            return;
#else
            return;
#endif
        }
示例#3
0
        //
        // C++:  Ptr_ShapeContextDistanceExtractor cv::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_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
        }