MCPcopy Create free account
hub / github.com/MITK/MITK / vtkResliceClamp

Function vtkResliceClamp

Modules/Segmentation/src/Algorithms/mitkVtkImageOverwrite.cpp:198–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196#if (VTK_USE_INT8 != 0)
197template <class F>
198inline void vtkResliceClamp(F val, vtkTypeInt8 &clamp)
199{
200 if (val < -128.0)
201 {
202 val = -128.0;
203 }
204 if (val > 127.0)
205 {
206 val = 127.0;
207 }
208 vtkResliceRound(val, clamp);
209}
210#endif
211
212#if (VTK_USE_UINT8 != 0)

Callers 1

vtkAllocBackgroundPixelTFunction · 0.85

Calls 1

vtkResliceRoundFunction · 0.85

Tested by

no test coverage detected