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?
1 | initial version |
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?