예제 #1
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_PRO_LICENSE || ((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
        }
예제 #2
0
        //
        // C++:  void cv::dnn::Net::deleteLayer(LayerId layer)
        //

        //javadoc: Net::deleteLayer(layer)
        public void deleteLayer(DictValue layer)
        {
            ThrowIfDisposed();
            if (layer != null)
            {
                layer.ThrowIfDisposed();
            }
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            dnn_Net_deleteLayer_10(nativeObj, layer.getNativeObjAddr());

            return;
#else
            return;
#endif
        }
예제 #3
0
        //javadoc: Net::getParam(layer)
        public Mat getParam(DictValue layer)
        {
            ThrowIfDisposed();
            if (layer != null)
            {
                layer.ThrowIfDisposed();
            }
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            Mat retVal = new Mat(dnn_Net_getParam_11(nativeObj, layer.getNativeObjAddr()));

            return(retVal);
#else
            return(null);
#endif
        }
예제 #4
0
        //
        // C++:  void cv::dnn::Net::setParam(LayerId layer, int numParam, Mat blob)
        //

        //javadoc: Net::setParam(layer, numParam, blob)
        public void setParam(DictValue layer, int numParam, Mat blob)
        {
            ThrowIfDisposed();
            if (layer != null)
            {
                layer.ThrowIfDisposed();
            }
            if (blob != null)
            {
                blob.ThrowIfDisposed();
            }
#if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            dnn_Net_setParam_10(nativeObj, layer.getNativeObjAddr(), numParam, blob.nativeObj);

            return;
#else
            return;
#endif
        }