[−][src]Function opencv::cudaarithm::add_weighted
pub fn add_weighted(
src1: &dyn ToInputArray,
alpha: f64,
src2: &dyn ToInputArray,
beta: f64,
gamma: f64,
dst: &mut dyn ToOutputArray,
dtype: i32,
stream: &mut Stream
) -> Result<()>
Computes the weighted sum of two arrays.
Parameters
- src1: First source array.
- alpha: Weight for the first array elements.
- src2: Second source array of the same size and channel number as src1 .
- beta: Weight for the second array elements.
- dst: Destination array that has the same size and number of channels as the input arrays.
- gamma: Scalar added to each sum.
- dtype: Optional depth of the destination array. When both input arrays have the same depth, dtype can be set to -1, which will be equivalent to src1.depth().
- stream: Stream for the asynchronous version.
The function addWeighted calculates the weighted sum of two arrays as follows:
where I is a multi-dimensional index of array elements. In case of multi-channel arrays, each channel is processed independently.
See also
addWeighted
C++ default parameters
- dtype: -1
- stream: Stream::Null()