示例#1
0
        //
        // C++:  Ptr_Layer cv::dnn::Net::getLayer(LayerId layerId)
        //

        /**
         * Returns pointer to layer with specified id or name which the network use.
         * param layerId automatically generated
         * return automatically generated
         */
        public Layer getLayer(DictValue layerId)
        {
            ThrowIfDisposed();
            if (layerId != null)
            {
                layerId.ThrowIfDisposed();
            }

            return(Layer.__fromPtr__(dnn_Net_getLayer_10(nativeObj, layerId.getNativeObjAddr())));
        }
示例#2
0
        //
        // C++:  Ptr_Layer cv::dnn::Net::getLayer(LayerId layerId)
        //

        //javadoc: Net::getLayer(layerId)
        public Layer getLayer(DictValue layerId)
        {
            ThrowIfDisposed();
            if (layerId != null)
            {
                layerId.ThrowIfDisposed();
            }
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            Layer retVal = Layer.__fromPtr__(dnn_Net_getLayer_10(nativeObj, layerId.getNativeObjAddr()));

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