Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upTBB can be replaced with cv::parallel_for_ #241
Comments
This comment has been minimized.
This comment has been minimized.
Thanks for the suggestion, when I update the OpenCV version used I will consider using the cv::parallel for as that could be a bit more portable. |
This comment has been minimized.
This comment has been minimized.
any plans of implementing this yet? |
This comment has been minimized.
This comment has been minimized.
Not anytime soon, I will be moving to OpenCV 3.3 eventually and will explore using the OpenCV parallel option then. |
This comment has been minimized.
This comment has been minimized.
seems like opencv 3.4 is now supported...will you consider using the cv::parallel now? |
This comment has been minimized.
This comment has been minimized.
Definitely considering, it's on my list of things to explore, but I'm focusing on other features at the moment. |
This comment has been minimized.
This comment has been minimized.
For simplicity, you can straightly replace codes in Patch_experts.cpp.
|
This comment has been minimized.
This comment has been minimized.
Great thanks for the code but I think it is not enough...there are other files using tbb such as LandmarkDetectionValidator.cpp and FaceDetectorMTCNN.cpp |
This comment has been minimized.
This comment has been minimized.
@AntonLinderer Of course, and you can easily translate those codes by using cv::parallel_for_ . |
This comment has been minimized.
This comment has been minimized.
Explicit requirement on TBB has been removed, but it can still be used if OpenCV is compiled with it. |
The first precondition is to have OpenCV built with a parallel framework. In OpenCV 3.2, the following parallel frameworks are available in that order:
http://docs.opencv.org/trunk/d7/dff/tutorial_how_to_use_OpenCV_parallel_for_.html