#include "lfr.h" const int threshold_binary = 110; LFR::LFR() : iAmLooping(false), input(), processing(), controlModule(), interpreter(), intersectionHandler() { } LFR::~LFR() { } void LFR::loop() { //Give it 10 loops while async processing is not supported. //while(iAmLooping) for(int i = 0; i < 3; i++) { Mat image = input.readWebcam(); processing.calculate_binaray(image, threshold_binary); imshow("Display window", image); waitKey(0); } iAmLooping = false; } void LFR::startLoop() { this->loop(); } void LFR::endLoop() { std::cout<<"The loop has been started. You may not dare to tell it to stop."; }