First time here? Check out the FAQ!
answered 2013-12-13 04:59:32 -0600
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