Ask Your Question

Revision history [back]

click to hide/show revision 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);
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);