|
|
|
|
|
|
|
|
// No return value here as the input is passed by reference -> directly modified. |
|
|
// No return value here as the input is passed by reference -> directly modified. |
|
|
cvtColor(inputPicture, inputPicture, COLOR_BGR2GRAY); |
|
|
cvtColor(inputPicture, inputPicture, COLOR_BGR2GRAY); |
|
|
threshold(inputPicture, inputPicture, thresholdValue, 255, THRESH_BINARY); |
|
|
threshold(inputPicture, inputPicture, thresholdValue, 255, THRESH_BINARY); |
|
|
|
|
|
GaussianBlur(inputPicture, inputPicture, Size(gaussKernelSize, gaussKernelSize), 0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
std::vector<LFRLine> Processing::calculateLineSegments(const Mat& inputPicture) |
|
|
std::vector<LFRLine> Processing::calculateLineSegments(const Mat& inputPicture) |