1 | initial version |
class Body : public cv::ParallelLoopBody
{
public:
void operator ()(const cv::Range& range) const
{
for (int i = range.start; i < range.end; ++i)
...
}
};
Body body;
cv::parallel_for(cv::Range(0, count), body);
2 | No.2 Revision |
class Body : public cv::ParallelLoopBody
{
public:
void operator ()(const cv::Range& range) const
{
for (int i = range.start; i < range.end; ++i)
...
}
};
Body body;
cv::parallel_for(cv::Range(0, cv::parallel_for_(cv::Range(0, count), body);