From 96a9175761b0644de97bb04ed426114b2181e488 Mon Sep 17 00:00:00 2001 From: am0ebe <am0ebe@gmx.de> Date: Sun, 28 Nov 2021 17:10:07 +0100 Subject: [PATCH] . --- src/algorithms/ttoolbox.cpp | 1 + src/algorithms/ttoolbox.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/algorithms/ttoolbox.cpp b/src/algorithms/ttoolbox.cpp index e5005a3..2fc4ab5 100644 --- a/src/algorithms/ttoolbox.cpp +++ b/src/algorithms/ttoolbox.cpp @@ -57,6 +57,7 @@ std::vector<std::vector<cv::Point>> TToolBox::applyCannyEdgeAndCalcCountours(cv: cv::drawContours( imgContour, contours, i, color, 1, cv::LINE_AA, hierarchy, 0, cv::Point() ); } + cv::String outpath= "/homes/tb55xemi/work/dev/bgslibrary-bgslib_qtgui_2.0.0/build/test0815/results"; std::ostringstream convert; convert << outpath << "test_countour_canny_edge.jpg"; diff --git a/src/algorithms/ttoolbox.h b/src/algorithms/ttoolbox.h index ee2ca9b..656a048 100644 --- a/src/algorithms/ttoolbox.h +++ b/src/algorithms/ttoolbox.h @@ -42,6 +42,7 @@ public: static std::vector<std::vector<cv::Point>> applyCannyEdgeAndCalcCountours(cv::Mat imgSource, double threshholdMin, double threshholdMax, int apertureSize); //! will test if file is not corrupted + //! Requires: 'identify' cmd from ImageMagick //! @return 1 if corrupted //! @return 0 if not static int checkFileCorrupted(std::string filename); -- GitLab