1

现在只是想把我的头绕在 IPP 上。有没有人有任何可用的 C/C++ 代码来对图像进行 FFT 卷积?

4

2 回答 2

2

这里的例子

/* Sample C-code snipet for Example 1 using Intel® Integrated Performance Primitives (Intel® IPP): */

/* allocate and initialize specification structures */
ippsFFTInitAlloc_C_32fc(&FFTspec1_p, order, IPP_FFT_DIV_FWD_BY_N, ippAlgHintFast);
ippsFFTGetBufSize_C_32fc(FFTspec1, &BufSize);
Buf1_p = (Ipp8u *) ippsMalloc_32sc(BufSize*sizeof(Ipp8u));

// ...

/* compute in-place FFTs of input sequences*/
ippsFFTFwd_CToC_32fc_I(x_p, FFTspec1_p, Buf1_p);
ippsFFTFwd_CToC_32fc_I(y_p, FFTspec1_p, Buf1_p);

/* perform complex multiplication and inverse FFT*/
ippsMul_32fc( x_p, y_p, o_p, veclength);
ippsFFTInv_CToC_32fc_I(o_p,FFTspec1_p, Buf1_p);

// ...

/* free specification structures */
ippsFFTFree_C_32fc( FFTSpec1_p);
ippsFree(Buf1_p);
于 2013-05-08T18:48:43.613 回答
0

我也在研究图像的 FFT 卷积。我的询问表明,以“ipps”开头的 ipp 函数是针对信号处理的。以“ippi”开头的ipp函数是针对图像处理的。有关工作示例,请查看第 597 页

http://download-software.intel.com/sites/products/documentation/doclib/ipp_sa/71/ipp_manual/ippi.pdf

于 2013-06-10T08:25:28.260 回答