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

Method InternalRequestUpdateExtent

Imaging/General/vtkImageGaussianSmooth.cxx:99–113  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

97
98//------------------------------------------------------------------------------
99void vtkImageGaussianSmooth::InternalRequestUpdateExtent(int* inExt, int* wholeExtent)
100{
101 int idx, radius;
102
103 // Expand filtered axes
104 for (idx = 0; idx < this->Dimensionality; ++idx)
105 {
106 radius = static_cast<int>(this->StandardDeviations[idx] * this->RadiusFactors[idx]);
107 inExt[idx * 2] -= radius;
108 inExt[idx * 2] = std::max(inExt[idx * 2], wholeExtent[idx * 2]);
109
110 inExt[idx * 2 + 1] += radius;
111 inExt[idx * 2 + 1] = std::min(inExt[idx * 2 + 1], wholeExtent[idx * 2 + 1]);
112 }
113}
114
115//------------------------------------------------------------------------------
116// For a given position along the convolution axis, this method loops over

Callers 8

RequestUpdateExtentMethod · 0.95
ThreadedRequestDataMethod · 0.95
ThreadedRequestDataMethod · 0.45
ThreadedRequestDataMethod · 0.45
ThreadedRequestDataMethod · 0.45
ThreadedRequestDataMethod · 0.45
ThreadedRequestDataMethod · 0.45
ThreadedRequestDataMethod · 0.45

Calls 2

maxFunction · 0.50
minFunction · 0.50

Tested by

no test coverage detected