LUT.h: new += operator to sum up per thread histograms; RawImageSource::getRAWHistogram: very small speedup
This commit is contained in:
@@ -257,6 +257,17 @@ public:
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
// handy to sum up per thread histograms
|
||||
LUT<T> & operator+=(LUT<T> &rhs)
|
||||
{
|
||||
if (rhs.size == this->size) {
|
||||
for(unsigned int i = 0; i < this->size; i++) {
|
||||
data[i] += rhs.data[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// use with integer indices
|
||||
T& operator[](int index) const
|
||||
{
|
||||
|
Reference in New Issue
Block a user