c - Looking for a working example of FFT convolution with Intel IPP -
just trying wrap head around ipp right now. have working c/c++ code doing fft convolution on image?
/* sample c-code snipet example 1 using intel® integrated performance primitives (intel® ipp): */ /* allocate , 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 , 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);
Comments
Post a Comment