-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ch8 opencv 3.2.0 parallel_for_ doesn't support std::bind function #32
Comments
and if you are using CLion, please note that the source file's data reference was in current directory like this: string left_file = "./left.png";
string disparity_file = "./disparity.png"; this is dirty, please make sure you parameterize your file path, since the executive file will be compiled in cmake-build-debug directory |
Thanks for commit. Looks like since opencv 4 the parallel_for_ has an overloaded form that supports std::function as the second input param: here. |
Thanks for your kind reply, I really appreciate your contributions! |
compiling error looks like this:
go to opencv
utility.hpp
and found that the definition ofparallel_for_
is like this:so, we have to modify the class
JacobianAccumulator
, extend it fromcv::ParallelLoopBody
and changeaccumulate_jacobian
function to it's operator override:virtual void operator()(const cv::Range& range) const
I have updated the source in my folk, you can download from here
The text was updated successfully, but these errors were encountered: