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
|
|
|
{
|
2022-11-01 14:56:17 +01:00
|
|
|
}
|
|
|
|
|
2022-11-01 16:34:51 +01:00
|
|
|
Mat Processing::calculate_binaray(Mat& inputPicture, int thresholdValue)
|
2022-11-01 14:56:17 +01:00
|
|
|
{
|
2022-11-01 16:34:51 +01:00
|
|
|
//Mat &outputPicture;
|
|
|
|
cvtColor(inputPicture, inputPicture, COLOR_BGR2GRAY);
|
|
|
|
threshold(inputPicture, inputPicture, thresholdValue, 255, THRESH_BINARY);
|
|
|
|
return inputPicture;
|
2022-11-01 14:18:02 +01:00
|
|
|
}
|