Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2013-07-31 04:09:26 -0600

berak gravatar image

cv::reduce does not support int as src type

i just found, that CV_32S is not supported as input type for cv::reduce().

is there any valid reason for that ? anything else is supported.

( yes, i've seen this )

cv::reduce does not support int as src type

i just found, that CV_32S is not supported as input type for cv::reduce().

is there any valid reason for that ? anything else is supported.

( yes, i've seen this )


cv::Mat src = cv::Mat::eye(4,4, CV_32S);
std::vector<int> dst;
cv::reduce(src , dst , 0 , REDUCE_SUM );

OpenCV Error: Unsupported format or combination of formats (Unsupported combinat ion of input and output array formats) in unknown function, file ......\module s\core\src\matrix.cpp, line 2435

there is just no case for it in matrix.cpp, 2253 and below