17 lines
360 B
C++

#include "processing.h"
Processing::Processing(/* args */)
{
}
Processing::~Processing()
{
}
Mat Processing::calculate_binaray(Mat& inputPicture, int thresholdValue)
{
//Mat &outputPicture;
cvtColor(inputPicture, inputPicture, COLOR_BGR2GRAY);
threshold(inputPicture, inputPicture, thresholdValue, 255, THRESH_BINARY);
return inputPicture;
}