cv::reduce is not working properly after upgrading to 2.4.3 (Bug #2482)


Added by Mohammed Manna over 12 years ago. Updated over 12 years ago.


Status:Cancelled Start date:2012-10-28
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:core
Target version:2.4.3-rc
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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.


main.cpp - Main file that contains the program (709 Bytes) Mohammed Manna, 2012-10-28 11:32 pm


Associated revisions

Revision c72a0a12
Added by Andrey Pavlenko almost 11 years ago

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

Also available in: Atom PDF