fn add_layer(&mut self, name: &str, typ: &str, params: &mut crate::dnn::LayerParams) -> Result<i32> {
		string_arg!(name);
		string_arg!(typ);
		unsafe { sys::cv_dnn_Net_addLayer_const_StringX_const_StringX_LayerParamsX(self.as_raw_mut_Net(), name.as_ptr(), typ.as_ptr(), params.as_raw_mut_LayerParams()) }.into_result()
	}
/// Adds new layer to the net.
/// ## Parameters
/// * name: unique name of the adding layer.
/// * type: typename of the adding layer (type must be registered in LayerRegister).
/// * params: parameters which will be used to initialize the creating layer.
/// ## Returns
/// unique identifier of created layer, or -1 if a failure will happen.
Adds new layer to the net.
Adds new layer to the net .
fn add_layer(&mut self, name: &str, typ: &str, params: &mut crate::dnn::LayerParams) -> Result<i32> {
		string_arg!(name);
		string_arg!(typ);
		unsafe { sys::cv_dnn_Net_addLayer_const_StringX_const_StringX_LayerParamsX(self.as_raw_mut_Net(), name.as_ptr(), typ.as_ptr(), params.as_raw_mut_LayerParams()) }.into_result()
	}
fn add_layer ( & mut self , name : & str , typ : & str , params : & mut crate :: dnn :: LayerParams ) -> Result < i32 > { string_arg ! ( name ) ; string_arg ! ( typ ) ; unsafe { sys :: cv_dnn_Net_addLayer_const_StringX_const_StringX_LayerParamsX ( self . as_raw_mut_Net ( ) , name . as_ptr ( ) , typ . as_ptr ( ) , params . as_raw_mut_LayerParams ( ) ) } . into_result ( ) }
Adds new layer to the net.
Adds new layer to the net .
unique identifier of created layer, or -1 if a failure will happen.
unique identifier of created layer or - 1 if a failure will happen .
&mut self
name
&str
typ
&str
params
&mut crate::dnn::LayerParams