| 176 | } |
| 177 | |
| 178 | void Reduce() |
| 179 | { |
| 180 | // Add each thread's histogram to the final output histogram. |
| 181 | vtkTypeInt64 count; |
| 182 | vtkTypeInt64 localCount; |
| 183 | for (const auto& localHistogram : this->ThreadHistogram) |
| 184 | { |
| 185 | for (vtkIdType bb = 0; bb < this->NumberOfBins + 3; ++bb) |
| 186 | { |
| 187 | this->Histogram->GetIntegerTuple(bb, &count); |
| 188 | localHistogram->GetIntegerTuple(bb, &localCount); |
| 189 | count += localCount; |
| 190 | this->Histogram->SetIntegerTuple(bb, &count); |
| 191 | } |
| 192 | } |
| 193 | this->SamplesInRange = 0; |
| 194 | for (const auto& localSamplesInRange : this->ThreadSamplesInRange) |
| 195 | { |
| 196 | this->SamplesInRange += localSamplesInRange; |
| 197 | } |
| 198 | } |
| 199 | }; |
| 200 | |
| 201 | } // anonymous namespace |
nothing calls this directly
no test coverage detected