【问题标题】:Looking for a working example of FFT convolution with Intel IPP寻找使用英特尔 IPP 进行 FFT 卷积的工作示例
【发布时间】:2013-05-03 00:47:12
【问题描述】:

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

【问题讨论】:

    标签: c image-processing computer-vision intel-ipp


    【解决方案1】:

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

    的第 597 页

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

    【讨论】:

      【解决方案2】:

      Example from here:

      /* 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);
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-02-21
        相关资源
        最近更新 更多