Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

average of some frames

to get the average of two frames, I found this simple code in opencv.

Mat img_mean=0.5*image+0.5*image2;
imshow("Average",img_mean);

But I get this error that Double can not convert to the Mat.

How do I solve this erros?