pub fn add_weighted(src1: &dyn core::ToInputArray, alpha: f64, src2: &dyn core::ToInputArray, beta: f64, gamma: f64, dst: &mut dyn core::ToOutputArray, dtype: i32) -> Result<()> {
	input_array_arg!(src1);
	input_array_arg!(src2);
	output_array_arg!(dst);
	unsafe { sys::cv_addWeighted_const__InputArrayX_double_const__InputArrayX_double_double_const__OutputArrayX_int(src1.as_raw__InputArray(), alpha, src2.as_raw__InputArray(), beta, gamma, dst.as_raw__OutputArray(), dtype) }.into_result()
}
/// Calculates the weighted sum of two arrays.
/// 
/// The function addWeighted calculates the weighted sum of two arrays as follows:
/// ![block formula](https://latex.codecogs.com/png.latex?%5Ctexttt%7Bdst%7D%20%28I%29%3D%20%5Ctexttt%7Bsaturate%7D%20%28%20%5Ctexttt%7Bsrc1%7D%20%28I%29%2A%20%5Ctexttt%7Balpha%7D%20%2B%20%20%5Ctexttt%7Bsrc2%7D%20%28I%29%2A%20%5Ctexttt%7Bbeta%7D%20%2B%20%20%5Ctexttt%7Bgamma%7D%20%29)
/// where I is a multi-dimensional index of array elements. In case of multi-channel arrays, each
/// channel is processed independently.
/// The function can be replaced with a matrix expression:
/// ```ignore
///    dst = src1*alpha + src2*beta + gamma;
/// ```
/// 
/// 
/// Note: Saturation is not applied when the output array has the depth CV_32S. You may even get
/// result of an incorrect sign in the case of overflow.
/// ## Parameters
/// * src1: first input array.
/// * alpha: weight of the first array elements.
/// * src2: second input array of the same size and channel number as src1.
/// * beta: weight of the second array elements.
/// * gamma: scalar added to each sum.
/// * dst: output array that has the same size and number of channels as the input arrays.
/// * dtype: optional depth of the output array; when both input arrays have the same depth, dtype
/// can be set to -1, which will be equivalent to src1.depth().
/// ## See also
/// add, subtract, scaleAdd, Mat::convertTo
/// 
/// ## C++ default parameters
/// * dtype: -1
Calculates the weighted sum of two arrays.
The function addWeighted calculates the weighted sum of two arrays as follows:
[block formula]
where I is a multi-dimensional index of array elements. In case of multi-channel arrays, each
channel is processed independently.

Saturation is not applied when the output array has the depth CV_32S. You may even get
result of an incorrect sign in the case of overflow.
Calculates the weighted sum of two arrays . The function addWeighted calculates the weighted sum of two arrays as follows : [ block formula ] where I is a multi - dimensional index of array elements . In case of multi - channel arrays each channel is processed independently . Saturation is not applied when the output array has the depth CV_32S . You may even get result of an incorrect sign in the case of overflow .
pub fn add_weighted(src1: &dyn core::ToInputArray, alpha: f64, src2: &dyn core::ToInputArray, beta: f64, gamma: f64, dst: &mut dyn core::ToOutputArray, dtype: i32) -> Result<()> {
	input_array_arg!(src1);
	input_array_arg!(src2);
	output_array_arg!(dst);
	unsafe { sys::cv_addWeighted_const__InputArrayX_double_const__InputArrayX_double_double_const__OutputArrayX_int(src1.as_raw__InputArray(), alpha, src2.as_raw__InputArray(), beta, gamma, dst.as_raw__OutputArray(), dtype) }.into_result()
}
pub fn add_weighted ( src1 : & dyn core :: ToInputArray , alpha : f64 , src2 : & dyn core :: ToInputArray , beta : f64 , gamma : f64 , dst : & mut dyn core :: ToOutputArray , dtype : i32 ) -> Result < ( ) > { input_array_arg ! ( src1 ) ; input_array_arg ! ( src2 ) ; output_array_arg ! ( dst ) ; unsafe { sys :: cv_addWeighted_const__InputArrayX_double_const__InputArrayX_double_double_const__OutputArrayX_int ( src1 . as_raw__InputArray ( ) , alpha , src2 . as_raw__InputArray ( ) , beta , gamma , dst . as_raw__OutputArray ( ) , dtype ) } . into_result ( ) }
Calculates the weighted sum of two arrays.
Calculates the weighted sum of two arrays .
src1
&dyn core::ToInputArray
alpha
f64
src2
&dyn core::ToInputArray
beta
f64
gamma
f64
dst
&mut dyn core::ToOutputArray
dtype
i32
see also
add, subtract, scaleAdd, Mat::convertTo
add subtract scaleAdd Mat :: convertTo
c++ default parameters
None