Projektarbeit Line Following Robot bei Prof. Chowanetz im WS22/23
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

processing.cpp 360B

1234567891011121314151617
  1. #include "processing.h"
  2. Processing::Processing(/* args */)
  3. {
  4. }
  5. Processing::~Processing()
  6. {
  7. }
  8. Mat Processing::calculate_binaray(Mat& inputPicture, int thresholdValue)
  9. {
  10. //Mat &outputPicture;
  11. cvtColor(inputPicture, inputPicture, COLOR_BGR2GRAY);
  12. threshold(inputPicture, inputPicture, thresholdValue, 255, THRESH_BINARY);
  13. return inputPicture;
  14. }