MCPcopy Create free account
hub / github.com/Kitware/VTK / Reduce

Method Reduce

Filters/Statistics/vtkVisualStatistics.cxx:178–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

GetIntegerTupleMethod · 0.80
SetIntegerTupleMethod · 0.80

Tested by

no test coverage detected