Skip to content

Commit 7f040f6

Browse files
committed
雑多 include 見直しなど
1 parent 7b40378 commit 7f040f6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

modules/ximgproc/src/sparse_table_morphology.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "precomp.hpp"
66
#include <limits>
77
#include <vector>
8-
#include <algorithm>
8+
#include <utility>
99

1010
namespace cv {
1111
namespace stMorph {
@@ -105,7 +105,6 @@ std::vector<StStep> planSparseTableConstr(std::vector<std::vector<bool>> sparseM
105105
{
106106
/*
107107
*
108-
*
109108
* AtCoder: https://atcoder.jp/contests/ahc037/tasks/ahc037_a
110109
*
111110
* The rectilinear steiner arborescence problem

modules/ximgproc/test/test_sparse_table_morphology.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include "test_precomp.hpp"
66
#include "opencv2/ximgproc/sparse_table_morphology.hpp"
7+
#include <vector>
78

89
namespace opencv_test {
910
namespace {
@@ -232,7 +233,7 @@ TEST(ximgproc_StMorph_dev, compare_with_original_erode)
232233
Mat diff;
233234
cv::absdiff(expected, actual, diff);
234235

235-
#if 1
236+
#if 0
236237
putText(expected, std::to_string(originalTime), cv::Point(10, 20), HersheyFonts::FONT_HERSHEY_TRIPLEX, 1, Scalar(250, 40, 40), 1, LineTypes::FILLED);
237238
putText(actual, std::to_string(proposalTime), cv::Point(10, 20), HersheyFonts::FONT_HERSHEY_TRIPLEX, 1, Scalar(250, 40, 40), 1, LineTypes::FILLED);
238239
Mat con;
@@ -289,7 +290,7 @@ TEST(ximgproc_StMorph_dev, POW2RECT_COVERING)
289290
cv::line(kernel, rb, rt, color[i % 20], 2);
290291
cv::line(kernel, rt, lt, color[i % 20], 2);
291292
}
292-
imshow("kernel", kernel);
293+
//imshow("kernel", kernel);
293294

294295
waitKey();
295296
destroyAllWindows();
@@ -332,7 +333,7 @@ TEST(ximgproc_StMorph_dev, PLANNING)
332333
cv::line(m, Point(edge.dimCol * g + g / 2, edge.dimRow * g + g / 2), Point((edge.dimCol + 1) * g + g / 2, edge.dimRow * g + g / 2), Scalar(100, 100, 100), 2);
333334
}
334335
}
335-
imshow("Map", m);
336+
// imshow("Map", m);
336337

337338
waitKey();
338339
destroyAllWindows();

0 commit comments

Comments
 (0)