Example #1
0
        //
        // C++: static javaDescriptorExtractor* javaDescriptorExtractor::create(int extractorType)
        //

        /**
         * <p>Creates a descriptor extractor by name.</p>
         *
         * <p>The current implementation supports the following types of a descriptor
         * extractor:</p>
         * <ul>
         *   <li> <code>"SIFT"</code> -- "SIFT"
         *   <li> <code>"SURF"</code> -- "SURF"
         *   <li> <code>"BRIEF"</code> -- "BriefDescriptorExtractor"
         *   <li> <code>"BRISK"</code> -- "BRISK"
         *   <li> <code>"ORB"</code> -- "ORB"
         *   <li> <code>"FREAK"</code> -- "FREAK"
         * </ul>
         *
         * <p>A combined format is also supported: descriptor extractor adapter name
         * (<code>"Opponent"</code> -- "OpponentColorDescriptorExtractor") + descriptor
         * extractor name (see above), for example: <code>"OpponentSIFT"</code>.</p>
         *
         * @param extractorType a extractorType
         *
         * @see <a href="http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_descriptor_extractors.html#descriptorextractor-create">org.opencv.features2d.DescriptorExtractor.create</a>
         */
        public static DescriptorExtractor create(int extractorType)
        {
                                                #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR) || UNITY_5
            DescriptorExtractor retVal = new DescriptorExtractor(features2d_DescriptorExtractor_create_10(extractorType));

            return(retVal);
                                                #else
            return(null);
                                                #endif
        }
        //
        // C++: static Ptr_javaDescriptorExtractor create(int extractorType)
        //

        //javadoc: javaDescriptorExtractor::create(extractorType)
        public static DescriptorExtractor create(int extractorType)
        {
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            DescriptorExtractor retVal = DescriptorExtractor.__fromPtr__(features2d_DescriptorExtractor_create_10(extractorType));

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