Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

averaging some frames

Hi. How do I get average of the 3 frames?

This is what I have done until now...

std::list<float*> Nframes;

 Mat Ex = Mat::zeros( width, height, CV_8UC1 );

 for(int i = 0; i < Nframes.size(); i++)
 {
     Ex += Nframes.front();
 } 
   Mat Result=Ex/Nframes.size();

I do not know what is the problem since I get error in line:

  `Ex += Nframes.front();`