1234567891011121314151617 |
- #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;
- }
|