Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Bsd {
- private:
- char upperValue;
- char lowerValue;
- public:
- void operator() (const blocked_range<short>& range) const {
- short data;
- for (short i = range.begin(); i != range.end(); ++i) {
- data = cvHighPass[i];
- if(data<lowerValue)
- {
- data = lowerValue;
- }
- else if(data>upperValue)
- {
- data = upperValue;
- }
- clip2CounterVector.push_back(data);
- }
- };
- Bsd(char u, char l) : upperValue(u), lowerValue(l) {};
- };
- parallel_for(blocked_range<short>(0,cvHighPass.size()), Bsd(upperValue, lowerValue), auto_partitioner());
- return RET_OK;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement