Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You already has function in OpenCV that highly optimized for this specific task: addWeighted.

addWeighted(frame_current, 1/Beta, background_current, 1-1/Beta, 0, foreground_current);