Cleaned up snake/camel case inconsistencies, added parameter for gauss kernel size

This commit is contained in:
2022-11-10 21:08:35 +01:00
parent d00cd2945b
commit 0d619a22f8
7 changed files with 28 additions and 24 deletions
+6 -4
View File
@@ -8,15 +8,17 @@ Processing::~Processing()
{
}
Mat Processing::calculate_binaray(Mat& inputPicture, int thresholdValue)
void Processing::processImage(Mat& inputPicture, int thresholdValue, int gaussKernelSize)
{
//Mat &outputPicture;
//Idea here is: Processing module consists of two methods:
// One (this) to do all kinds of stuff to the picture (grayscale conversion, threshold, gauss etc etc)
// And one (the other one) to segment the lines.
// No return value here as the input is passed by reference -> directly modified.
cvtColor(inputPicture, inputPicture, COLOR_BGR2GRAY);
threshold(inputPicture, inputPicture, thresholdValue, 255, THRESH_BINARY);
return inputPicture;
}
std::vector<LFRLine> Processing::calculate_line_segments(const Mat& inputPicture)
std::vector<LFRLine> Processing::calculateLineSegments(const Mat& inputPicture)
{
return std::vector<LFRLine>();
}
+2 -2
View File
@@ -17,7 +17,7 @@ public:
// End und Anfangspunkt analysieren und Winkel und Ausrichtung der Linie extrahieren (Abstand des untersten Punktes von der Mitte)
~Processing();
Mat calculate_binaray(Mat& inputPicture, int thresholdValue);
void processImage(Mat& inputPicture, int thresholdValue, int gaussKernelSize);
std::vector<LFRLine> calculate_line_segments(const Mat& inputPicture);
std::vector<LFRLine> calculateLineSegments(const Mat& inputPicture);
};