Skip to content

Commit

Permalink
Handle column -> row major in matFormat correctly
Browse files Browse the repository at this point in the history
We do need to do a transpose, but the inital matrix should have columns and
rows reversed, so that the matrix side remains correct.

Conflicts:
	openbr/plugins/format.cpp
  • Loading branch information
caotto committed Nov 25, 2013
1 parent ee10ec7 commit 6036587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openbr/plugins/format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class matFormat : public Format

if ((rows > 0) && (columns > 0) && (matrixType != 0) && !matrixData.isEmpty()) {
Mat transposed;
transpose(Mat(rows, columns, matrixType, matrixData.data()), transposed);
transpose(Mat(columns, rows, matrixType, matrixData.data()), transposed);
t.append(transposed);
}
}
Expand Down

0 comments on commit 6036587

Please sign in to comment.