17 lines
360 B
C++
Raw Normal View History

2022-11-01 14:18:02 +01:00
#include "processing.h"
2022-11-01 14:29:11 +01:00
Processing::Processing(/* args */)
2022-11-01 14:18:02 +01:00
{
}
2022-11-01 14:29:11 +01:00
Processing::~Processing()
2022-11-01 14:18:02 +01:00
{
}
Mat Processing::calculate_binaray(Mat& inputPicture, int thresholdValue)
{
//Mat &outputPicture;
cvtColor(inputPicture, inputPicture, COLOR_BGR2GRAY);
threshold(inputPicture, inputPicture, thresholdValue, 255, THRESH_BINARY);
return inputPicture;
2022-11-01 14:18:02 +01:00
}