Cleaned up snake/camel case inconsistencies, added parameter for gauss kernel size
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user