Commit 04361b90a37b4176beee5dd4c9e9071241b87041

Authored by bklare
1 parent ddd8c6a0

Bug fix

openbr/plugins/gallery/matlab.cpp
@@ -51,9 +51,8 @@ class matlabGallery : public FileGallery @@ -51,9 +51,8 @@ class matlabGallery : public FileGallery
51 cv::Mat m(r * c, templates.size(), CV_32FC1); 51 cv::Mat m(r * c, templates.size(), CV_32FC1);
52 for (int i = 0; i < templates.size(); i++) { 52 for (int i = 0; i < templates.size(); i++) {
53 cv::Mat temp; 53 cv::Mat temp;
54 - templates[i].m().copyTo(temp);  
55 - temp.reshape(1, 1);  
56 - m.col(i) = temp; 54 + temp = templates[i].m().reshape(1, r * c);
  55 + temp.copyTo(m.col(i));
57 } 56 }
58 57
59 f.write((const char *) &m.rows, 4); 58 f.write((const char *) &m.rows, 4);