Skip to content
Snippets Groups Projects

[WIP] ProcessorBase multi-threading

Closed Jeremie Deray requested to merge multi_threading into master
Files
13
@@ -151,7 +151,8 @@ int main(int argc, char** argv)
// Preferred method with factory objects:
image_ptr = new CaptureImage(t, camera_ptr, frame[f % buffer_size]);
image_ptr->process();
//image_ptr->process();
camera_ptr->addCapture(image_ptr);
//cv::imshow("test",frame[f % buffer_size]);
std::cout << "Time: " << ((double) clock() - t1) / CLOCKS_PER_SEC << "s" << std::endl;
cv::waitKey(5);
Loading