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

Method ComputeNumberOfComponents

Imaging/Core/vtkAbstractImageInterpolator.cxx:210–222  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

208
209//------------------------------------------------------------------------------
210int vtkAbstractImageInterpolator::ComputeNumberOfComponents(int inputCount)
211{
212 // validate the component range to extract
213 int component = this->ComponentOffset;
214 int count = this->ComponentCount;
215
216 component = ((component > 0) ? component : 0);
217 component = ((component < inputCount) ? component : inputCount - 1);
218 count = ((count < (inputCount - component)) ? count : (inputCount - component));
219 count = ((count > 0) ? count : (inputCount - component));
220
221 return count;
222}
223
224//------------------------------------------------------------------------------
225int vtkAbstractImageInterpolator::GetNumberOfComponents()

Callers 4

UpdateMethod · 0.95
UpdateMethod · 0.45
InitializeForProbingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected