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

Function prepareConvolution

Modules/Pharmacokinetics/include/mitkConvolutionHelper.h:107–115  ·  view source on GitHub ↗

\brief Prepares two arrays for FFT-based convolution. * * Zero-pads both the kernel and spectrum arrays to the sum of their sizes so * they are ready for forward FFT transformation. * \param[in] kernel The convolution kernel array. * \param[in] spectrum The signal array to be convolved. * \param[out] preparedKernel The zero-padded kernel. * \param[out] preparedSp

Source from the content-addressed store, hash-verified

105 * \param[out] preparedKernel The zero-padded kernel.
106 * \param[out] preparedSpectrum The zero-padded spectrum. */
107 inline void prepareConvolution(const itk::Array<double>& kernel, const itk::Array<double>& spectrum, itk::Array<double>& preparedKernel, itk::Array<double>& preparedSpectrum ){
108 int convolutionDimensions = kernel.GetSize() + spectrum.GetSize();
109
110// itk::Array<double> paddedKernel = zeropadding1d(kernel,convolutionDimensions);
111 preparedKernel=zeropadding1d(kernel,convolutionDimensions);
112
113 preparedSpectrum = zeropadding1d(spectrum,convolutionDimensions);
114// preparedKernel = wrap1d(paddedKernel);
115 }
116
117 }
118

Callers

nothing calls this directly

Calls 2

zeropadding1dFunction · 0.85
GetSizeMethod · 0.45

Tested by

no test coverage detected