Browse Source

Create prototype for line segment calculation to test linking processing to utils

pull/1/head
Tim Zeuner 2 years ago
parent
commit
c5e762f0f9
2 changed files with 9 additions and 1 deletions
  1. 6
    1
      Processing/processing.cpp
  2. 3
    0
      Processing/processing.h

+ 6
- 1
Processing/processing.cpp View File

@@ -14,4 +14,9 @@ Mat Processing::calculate_binaray(Mat& inputPicture, int thresholdValue)
cvtColor(inputPicture, inputPicture, COLOR_BGR2GRAY);
threshold(inputPicture, inputPicture, thresholdValue, 255, THRESH_BINARY);
return inputPicture;
}
}

std::vector<LFRLine> Processing::calculate_line_segments(const Mat& inputPicture)
{
return std::vector<LFRLine>();
}

+ 3
- 0
Processing/processing.h View File

@@ -1,5 +1,6 @@
#include <iostream>
#include <opencv2/opencv.hpp>
#include <utils.h>

using namespace cv;

@@ -17,4 +18,6 @@ public:
~Processing();

Mat calculate_binaray(Mat& inputPicture, int thresholdValue);

std::vector<LFRLine> calculate_line_segments(const Mat& inputPicture);
};

Loading…
Cancel
Save