cv::reduce is not working properly after upgrading to 2.4.3 (Bug #2482)
Description
I am trying to get the projection of rows and columns (i.e. sum) using cv::reduce. But it seems that it is complaining about the types of the source and destination matrices which are obviously correct in the code I have written. This seems like a bug that needs fixing. For convenience of debugging, I attached my main.cpp file to give a better picture of what I mean.
Associated revisions
Merge pull request #2482 from ilya-lavrenov:tapi_fix
History
Updated by Evgeny Talanin over 12 years ago
- Category set to core
Updated by Evgeny Talanin over 12 years ago
- Target version set to 2.4.3-rc
Updated by Vadim Pisarevsky over 12 years ago
probably, the error checking has been fixed, so you get the error message. The contained sample contains a bug. The reduce call should be change to:
reduce(matImg,rowSum,0,CV_REDUCE_SUM,CV_32S);
then it works. Also, note that the allocation of the output array rowSum is unnecessary, it will be allocated automatically by the function.
- Assignee set to Vadim Pisarevsky
- Status changed from Open to Cancelled