\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
| 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 |
nothing calls this directly
no test coverage detected