Advertisement
kernel_memory_dump

Untitled

Jun 7th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. class Bsd {
  2.     private:
  3.         char upperValue;
  4.         char lowerValue;
  5.     public:
  6.         void operator() (const blocked_range<short>& range) const {
  7.             short data;
  8.             for (short i = range.begin(); i != range.end(); ++i) {
  9.                 data = cvHighPass[i];
  10.                 if(data<lowerValue)
  11.                 {
  12.                     data = lowerValue;
  13.                 }
  14.                 else if(data>upperValue)
  15.                 {
  16.                     data = upperValue;
  17.                 }
  18.  
  19.                 clip2CounterVector.push_back(data);
  20.             }
  21.         };
  22.         Bsd(char u, char l) : upperValue(u), lowerValue(l) {};
  23.     };
  24.  
  25.     parallel_for(blocked_range<short>(0,cvHighPass.size()), Bsd(upperValue, lowerValue), auto_partitioner());
  26.  
  27.     return RET_OK;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement