[−][src]Function opencv::imgproc::accumulate_weighted
pub fn accumulate_weighted(
src: &dyn ToInputArray,
dst: &mut dyn ToInputOutputArray,
alpha: f64,
mask: &dyn ToInputArray
) -> Result<()>
Updates a running average.
The function calculates the weighted sum of the input image src and the accumulator dst so that dst becomes a running average of a frame sequence:
That is, alpha regulates the update speed (how fast the accumulator "forgets" about earlier images). The function supports multi-channel images. Each channel is processed independently.
Parameters
- src: Input image as 1- or 3-channel, 8-bit or 32-bit floating point.
- dst: %Accumulator image with the same number of channels as input image, 32-bit or 64-bit floating-point.
- alpha: Weight of the input image.
- mask: Optional operation mask.
See also
accumulate, accumulateSquare, accumulateProduct
C++ default parameters
- mask: noArray()