1、将帧叠加到累积器(accumulator)中
C++: void accumulate(InputArray src, InputOutputArray dst, InputArray mask=noArray() )
C: void cvAcc(const CvArr* image, CvArr* sum, const CvArr* mask=NULL )
-
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.
- mask – Optional operation mask.
The function adds src or some of its elements to dst :
The function supports multi-channel images. Each channel is processed independently(函数支持多通道图像。每个通道单独处理)。
C++: void accumulateWeighted(InputArray src, InputOutputArray dst, double alpha,InputArray mask=noArray() )
C: void cvRunningAvg(const CvArr* image, CvArr* acc, double alpha, const CvArr* mask=NULL )
Parameters: |
|
---|
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: