Reputation: 2733
I am using opencv's accumulateWeighted function to get a running average of a camera stream. However I have observed that for lower alpha values < 0.1) the output of the accumulateWeighted functions becomes very dark. Is this is expected behaviour of this function and if not that what am I doing wrong? I am passing it a CV_8UC3 image and receive an CV_32FC3 output which I then display by converting it back to CV_8UC3.
Upvotes: 1
Views: 389
Reputation: 1911
You should initialize dst
- the second parameter with the first input image (converted to float)
See example here
Upvotes: 1