Пример #1
0
        //javadoc: Retina::create(inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor)
        public static Retina create(Size inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor)
        {
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_11(inputSize.width, inputSize.height, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor));

            return(retVal);
#else
            return(null);
#endif
        }
Пример #2
0
        //
        // C++: static Ptr_Retina cv::bioinspired::Retina::create(Size inputSize)
        //

        //javadoc: Retina::create(inputSize)
        public static Retina create(Size inputSize)
        {
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_15(inputSize.width, inputSize.height));

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