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 483B

2 years ago
2 years ago
12345678910111213141516171819202122
  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. }
  15. std::vector<LFRLine> Processing::calculate_line_segments(const Mat& inputPicture)
  16. {
  17. return std::vector<LFRLine>();
  18. }