Ask Your Question

Revision history [back]

OpenCV provides a function to calculate the sum of pixels in one frame.

cv::Mat A = //blabla

float sum_of_elems = cv::sum(A);

Repeat this ad nauseum for all the frames you want