leon 1 月之前
父節點
當前提交
a508edb01d
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/nodes/infer/inferNode.cpp

+ 3 - 3
src/nodes/infer/inferNode.cpp

@@ -9,13 +9,13 @@ namespace Node
 {
 
 
-void print_mat(const cv::Mat& mat, int max_rows = 10, int max_clos = 10)
+void print_mat(const cv::Mat& mat, int max_rows = 10, int max_cols = 10)
 {
     for (int i = 0; i < std::min(max_rows, mat.rows); i++) {
-        for (int j = 0; j < std::min(max_clos, mat.cols); j++) {
+        for (int j = 0; j < std::min(max_cols, mat.cols); j++) {
             std::cout << mat.at<float>(i,j) << " ";
         }
-        std::cout << (bigMat.cols > max_clos ? "..." : "") << std::endl;
+        std::cout << (mat.cols > max_cols ? "..." : "") << std::endl;
     }
     if (mat.rows > max_rows) std::cout << "[...]" << std::endl;
 }