average of some frames

asked 2013-12-20 05:41:12 -0500

mahsa gravatar image

updated 2013-12-20 12:33:06 -0500

Moster gravatar image

Is there any possibility in opencv to get average of some frames?

std::list<float*> frames;

for(int i = 0; i < frames.size(); i++)
 {
     //Average of frames            

 }
edit retag flag offensive close merge delete

Comments

1

Why frames are std::list<float*> ? May be std::list<cv::Mat> ? Else, list<T> has not index, use iterator.

Flart gravatar imageFlart ( 2013-12-20 08:07:27 -0500 )edit

because each element of the list is a float pointer to the current frame.

mahsa gravatar imagemahsa ( 2013-12-20 08:56:09 -0500 )edit