|
@@ -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 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 << 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;
|
|
if (mat.rows > max_rows) std::cout << "[...]" << std::endl;
|
|
}
|
|
}
|