First time here? Check out the FAQ!
answered Aug 2 '12
It looks like you are doing exactly what cv::accumulate does as mentioned in your last question
If you look at the documentation, the Output Array has to be a CV_32F or CV_64F, but the inputs can be 8bit or 16 bit.