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

cvtColor(inputPicture, inputPicture, COLOR_BGR2GRAY); cvtColor(inputPicture, inputPicture, COLOR_BGR2GRAY);
threshold(inputPicture, inputPicture, thresholdValue, 255, THRESH_BINARY); threshold(inputPicture, inputPicture, thresholdValue, 255, THRESH_BINARY);
return inputPicture; return inputPicture;
}
}

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

+ 3
- 0
Processing/processing.h View File

#include <iostream> #include <iostream>
#include <opencv2/opencv.hpp> #include <opencv2/opencv.hpp>
#include <utils.h>


using namespace cv; using namespace cv;


~Processing(); ~Processing();


Mat calculate_binaray(Mat& inputPicture, int thresholdValue); Mat calculate_binaray(Mat& inputPicture, int thresholdValue);

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

Loading…
Cancel
Save