Zufällige Bilderausgabe und binäres Bild(verbesserbar)

This commit is contained in:
2022-11-01 16:34:51 +01:00
parent 403aaf0cdd
commit 20c961550b
33 changed files with 32 additions and 13 deletions
+5 -3
View File
@@ -8,8 +8,10 @@ Processing::~Processing()
{
}
Mat Processing::calculate_binaray(const Mat& inputPicture)
Mat Processing::calculate_binaray(Mat& inputPicture, int thresholdValue)
{
//cvtColor(inputPicture, inputPicture, COLOR_RGB2GRAY);
return Mat();
//Mat &outputPicture;
cvtColor(inputPicture, inputPicture, COLOR_BGR2GRAY);
threshold(inputPicture, inputPicture, thresholdValue, 255, THRESH_BINARY);
return inputPicture;
}
+1 -1
View File
@@ -16,5 +16,5 @@ public:
// End und Anfangspunkt analysieren und Winkel und Ausrichtung der Linie extrahieren (Abstand des untersten Punktes von der Mitte)
~Processing();
Mat calculate_binaray(const Mat& inputPicture);
Mat calculate_binaray(Mat& inputPicture, int thresholdValue);
};