From 9bc26a41e47571fe65f9e790ff5c5deb92fecde5 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Sun, 17 Nov 2013 19:31:50 -0500 Subject: [PATCH] Handle column -> row major in matFormat correctly --- openbr/plugins/format.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbr/plugins/format.cpp b/openbr/plugins/format.cpp index 6e0800d..62d7a73 100644 --- a/openbr/plugins/format.cpp +++ b/openbr/plugins/format.cpp @@ -418,7 +418,9 @@ class matFormat : public Format } if ((rows > 0) && (columns > 0) && (matrixType != 0) && !matrixData.isEmpty()) { - t.append(Mat(rows, columns, matrixType, matrixData.data())); + Mat transposed; + transpose(Mat(columns, rows, matrixType, matrixData.data()), transposed); + t.append(transposed); } } } -- libgit2 0.21.4