cv::transpose does not work in-place (Bug #1090)
Description
Using cv::transpose on the same matrix which is NxM, N != M results in memory corruption!
Also, the dimensionality of the matrix is not changed to MxN.
Illustration:
cv::transpose(matrix, matrix); // does NOT work correctly
Workaround:
cv::Mat tmp;
cv::transpose(matrix, tmp);
matrix = tmp;
It should at least throw an assert if in-place is not to be supported.
Associated revisions
Merge pull request #1090 from asmorkalov:android_tbb_downgrade
History
Updated by Vadim Pisarevsky almost 14 years ago
the problem can not be reproduced in the latest version of OpenCV (since migration from cv::Mat to cv::InputArray and cv::OutputArray)
- Status changed from Open to Done
- (deleted custom field) set to fixed