Mat CudaMem::createMatHeader() is wrong (Bug #1353)


Added by Rodrigo Benenson over 13 years ago. Updated over 13 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Vladislav Vinogradov % Done:

0%

Category:gpu (cuda)
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

In the current opencv trunk, file opencv2/gpu/matrix_operations.hpp line 122, it says

inline Mat [[CudaMem]]::createMatHeader() const { return Mat(size(), type(), data); }

but is should say

inline Mat [[CudaMem]]::createMatHeader() const { return Mat(size(), type(), data, step); }

without the step parameter, the created matrix is simply wrong and does not match the Cuda memory mapping.


Associated revisions

Revision 914ed44e
Added by Vladislav Vinogradov over 13 years ago

fixed CudaMem::createMatHeader (ticket #1353)

History

Updated by Vladislav Vinogradov over 13 years ago

  • Status deleted (Open)

Updated by Vladislav Vinogradov over 13 years ago

  • Status set to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF