First time here? Check out the FAQ!
answered 2012-11-02 11:16:06 -0600
change gg type to CV_32SC1:
gg
CV_32SC1
cv::Mat gg(cv::Mat::zeros::(1,5,CV_32SC1));
cv::reduce for SUM and 8U input can return only 32S, 32F or 64F types.