First time here? Check out the FAQ!
answered 2012-07-13 01:41:32 -0600
cv::accumulate function might help you. Also check accumulateSquare, accumulateProduct and accumulateWeighted. With accumulated image you can easily calculate statistics as Michael Burdinov says.
accumulateSquare
accumulateProduct
accumulateWeighted