Zufällige Bilderausgabe und binäres Bild(verbesserbar)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user