<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How is ippDFT length specified? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808652#M3771</link>
    <description>Hello Laura,&lt;BR /&gt;&lt;BR /&gt;I think you need to initialize your pDFTSpec buffer first using the &lt;EM&gt;ippiDFTInitAlloc()&lt;/EM&gt; function. See this excerpt from the image processing documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;P MSHELP="http://www.microsoft.com/MSHelp/"&gt;The function ippiDFTInitAlloc is declared in the ippi.h file. This function allocates memory and initializes the context structure pDFTSpec needed to compute the forward and inverse DFT of a two-dimensional image data.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P MSHELP="http://www.microsoft.com/MSHelp/"&gt;The &lt;A&gt;ippiDFTFwd&lt;/A&gt; and &lt;A&gt;ippiDFTInv&lt;/A&gt; functions called with the pointer to the initialized pDFTSpec structure as an argument will compute the discrete Fourier transform for points in the ROI of size roiSize, with results normalization mode set according to flag (see &lt;A&gt;Table Normalization Factors for Fourier Transform Results&lt;/A&gt;), and computation algorithm indicated by hint.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Paul</description>
    <pubDate>Tue, 12 Oct 2010 22:24:42 GMT</pubDate>
    <dc:creator>PaulF_IntelCorp</dc:creator>
    <dc:date>2010-10-12T22:24:42Z</dc:date>
    <item>
      <title>How is ippDFT length specified?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808648#M3767</link>
      <description>Hi,&lt;DIV&gt;In&lt;/DIV&gt;&lt;DIV&gt;&lt;P class="dlsyntaxpara"&gt;IppStatus ippgDFTFwd_CToC_32fc(const Ipp32fc*pSrc, Ipp32fc*pDst, intlen, intflag);&lt;/P&gt;&lt;P class="dlsyntaxpara"&gt;IppStatus ippgDFTFwd_CToC_64fc(const Ipp64fc*pSrc, Ipp64fc*pDst, intlen, intflag);&lt;/P&gt;&lt;P class="dlsyntaxpara"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;SPAN style="line-height: 16px;"&gt;it says :&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="dlsyntaxpara"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;SPAN style="line-height: 16px;"&gt;supported value for &lt;LEN&gt;: integer in the range [2, 64].&lt;BR /&gt;&lt;/LEN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="dlsyntaxpara"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;SPAN style="line-height: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="dlsyntaxpara"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;SPAN style="line-height: 16px;"&gt;How should I specify the length and theIppsDFTSpec if I have a two dimention array such as 4096*4096?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="dlsyntaxpara"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;SPAN style="line-height: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="dlsyntaxpara"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;SPAN style="line-height: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="dlsyntaxpara"&gt;&lt;SPAN style="line-height: normal;"&gt;&lt;SPAN style="line-height: 16px;"&gt;Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Oct 2010 23:04:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808648#M3767</guid>
      <dc:creator>missing__zlw</dc:creator>
      <dc:date>2010-10-11T23:04:28Z</dc:date>
    </item>
    <item>
      <title>How is ippDFT length specified?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808649#M3768</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;the lenmay be 12 (log2(4096)ifarrary is 4096. But the functions ippsDFT_* orippgDFT_* in ipps manual ippsman.pdf aresupposed for 1D signal.&lt;BR /&gt;&lt;BR /&gt;Iffor two dimention array, you may try the function in ippiman.pdf, for example,&lt;BR /&gt;IppStatus ippiDFTFwd_CToC_32fc_C1R(). And on the manual, you may refer tothe example&lt;BR /&gt;&lt;STRONG&gt;Example 10-2 Fast Fourier Transform of a Complex Image&lt;/STRONG&gt;for how to specify the DFTSpec. (the usage of FFTSpec and DFTSpecis almost same andit is not need to specify the length)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying&lt;BR /&gt;&lt;BR /&gt; The function flavors ippgDFTFwd_CToC and ippgDFTFwd_CToC_&lt;LEN&gt; compute the&lt;BR /&gt;forward DFT of the fixed length. They do not need the DFT specification structure. The length&lt;BR /&gt;of transform can be specified by the parameter len, or ...&lt;/LEN&gt;</description>
      <pubDate>Tue, 12 Oct 2010 03:18:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808649#M3768</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-10-12T03:18:08Z</dc:date>
    </item>
    <item>
      <title>How is ippDFT length specified?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808650#M3769</link>
      <description>Thanks for your response. But this is for FFT.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;For DFT, what happens if the order of not 2^n. For example, if I want to do DFT on matrix 5*10 of complex numbers, how should I specify the length in both ippiDFTInitAlloc_c_32fc  and ippiDFTFwd_CtoC_32fc ?&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Oct 2010 18:54:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808650#M3769</guid>
      <dc:creator>missing__zlw</dc:creator>
      <dc:date>2010-10-12T18:54:36Z</dc:date>
    </item>
    <item>
      <title>How is ippDFT length specified?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808651#M3770</link>
      <description>A follow-up question.&lt;DIV&gt;When I tried this, even with small arrays, I got 0 in output.&lt;/DIV&gt;&lt;DIV&gt;Did I get the settings wrong?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Ipp32fc* pSrc;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;Ipp32fc* pDst;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;pSrc = ippsMalloc_32fc(lexn*leny);&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;pDst = ippsMalloc_32fc(lenx*leny);&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;for (int i = 0; i &amp;lt; lenx*leny; i++) {&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; pSrc&lt;I&gt;.re = i;&lt;/I&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; pSrc&lt;I&gt;.im = 0.0f;&lt;/I&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;}&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;IppiDFTSpec_C_32fc *pDFTSpec;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;IppStatus status;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;IppiSize slen = {lenx, leny};&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;ippiDFTInitAlloc_C_32fc( &amp;amp;pDFTSpec, slen, IPP_FFT_NODIV_BY_ANY,ippAlgHintAccurate );&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;status = ippiDFTFwd_CToC_32fc_C1R(pSrc, leny, pDst, leny, pDFTSpec, 0 );&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Please help.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Oct 2010 20:40:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808651#M3770</guid>
      <dc:creator>missing__zlw</dc:creator>
      <dc:date>2010-10-12T20:40:58Z</dc:date>
    </item>
    <item>
      <title>How is ippDFT length specified?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808652#M3771</link>
      <description>Hello Laura,&lt;BR /&gt;&lt;BR /&gt;I think you need to initialize your pDFTSpec buffer first using the &lt;EM&gt;ippiDFTInitAlloc()&lt;/EM&gt; function. See this excerpt from the image processing documentation:&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;P MSHELP="http://www.microsoft.com/MSHelp/"&gt;The function ippiDFTInitAlloc is declared in the ippi.h file. This function allocates memory and initializes the context structure pDFTSpec needed to compute the forward and inverse DFT of a two-dimensional image data.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P MSHELP="http://www.microsoft.com/MSHelp/"&gt;The &lt;A&gt;ippiDFTFwd&lt;/A&gt; and &lt;A&gt;ippiDFTInv&lt;/A&gt; functions called with the pointer to the initialized pDFTSpec structure as an argument will compute the discrete Fourier transform for points in the ROI of size roiSize, with results normalization mode set according to flag (see &lt;A&gt;Table Normalization Factors for Fourier Transform Results&lt;/A&gt;), and computation algorithm indicated by hint.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Paul</description>
      <pubDate>Tue, 12 Oct 2010 22:24:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808652#M3771</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2010-10-12T22:24:42Z</dc:date>
    </item>
    <item>
      <title>How is ippDFT length specified?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808653#M3772</link>
      <description>&lt;P&gt;Hello zlw, &lt;BR /&gt;&lt;BR /&gt;there are may be some tiny error in the code. &lt;BR /&gt;&lt;BR /&gt;First, (a potentialerror):&lt;STRONG&gt;IppiSize&lt;/STRONG&gt; slen = {lenx, leny};&lt;BR /&gt;&lt;BR /&gt;let's suppose that you have 5x10 matrix. Then &lt;STRONG&gt;the "image" width&lt;/STRONG&gt; is 10 and &lt;STRONG&gt;the height&lt;/STRONG&gt; is 5. &lt;BR /&gt;then lenx=10, leny=5;&lt;BR /&gt;&lt;BR /&gt;second, the &lt;STRONG&gt;srcSteps, dstSteps&lt;/STRONG&gt;: &lt;STRONG&gt;Distance in bytes&lt;/STRONG&gt; between starts of consecutive lines&lt;BR /&gt;in theimage. &lt;BR /&gt;So status = ippiDFTFwd_CToC_32fc_C1R(pSrc, leny, pDst, leny, pDFTSpec, 0 );&lt;BR /&gt;should beat least;&lt;BR /&gt;ippiDFTFwd_CToC_32fc_C1R(pSrc, leny*sizeof(Ipp32fc) , pDst, leny*(Ipp32fc), pDFTSpec, 0 );&lt;BR /&gt;&lt;BR /&gt;Note, leny should be &lt;STRONG&gt;the image width,  should be slen.width= lenx.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;So you may take sure of the two things and make sure what is the input you hoped. &lt;BR /&gt;&lt;BR /&gt;I did a small modification and then the program run ok.&lt;BR /&gt;&lt;BR /&gt;//ippiDFT_test.cpp&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDAFX.H&gt;&lt;BR /&gt;#include "ipp.h" &lt;/STDAFX.H&gt;&lt;/P&gt;&lt;P&gt;int main() &lt;BR /&gt;{&lt;/P&gt;&lt;P&gt; int lenx=5, leny=10; //5x10 matrix&lt;BR /&gt; Ipp32fc* pSrc;&lt;BR /&gt; Ipp32fc* pDst;&lt;BR /&gt; pSrc = ippsMalloc_32fc(lenx*leny);&lt;BR /&gt; pDst = ippsMalloc_32fc(lenx*leny);&lt;BR /&gt; &lt;BR /&gt; for (int i = 0; i &amp;lt; lenx*leny; i++) {&lt;BR /&gt; pSrc&lt;I&gt;.re = i;&lt;BR /&gt; pSrc&lt;I&gt;.im = 0.0f;&lt;BR /&gt; }&lt;BR /&gt;IppiDFTSpec_C_32fc *pDFTSpec;&lt;BR /&gt; IppStatus status;&lt;BR /&gt; &lt;STRONG&gt;IppiSize slen = {leny, lenx};&lt;BR /&gt;&lt;/STRONG&gt; ippiDFTInitAlloc_C_32fc( &amp;amp;pDFTSpec, slen, IPP_FFT_NODIV_BY_ANY, ippAlgHintAccurate );&lt;BR /&gt; status = ippiDFTFwd_CToC_32fc_C1R(pSrc, &lt;STRONG&gt;leny*sizeof(Ipp32fc),&lt;/STRONG&gt; pDst, leny*sizeof(Ipp32fc), pDFTSpec, 0 );&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt; printf("%d : %s\n", status, ippGetStatusString(status));&lt;BR /&gt; printf("%f, %f, %f, %f\n", pDst[0].re, pDst[0].im, pDst[1].re, pDst[1].im);&lt;BR /&gt; &lt;BR /&gt; status = ippiDFTFree_C_32fc(pDFTSpec); // expect ippStsNoErr &lt;BR /&gt;printf("%d : %s\n", status, ippGetStatusString(status));&lt;BR /&gt; return 0; &lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;run result: &lt;BR /&gt;&lt;BR /&gt;0 : ippStsNoErr: No error, it's OK&lt;BR /&gt;1225.000000, 0.000000, -25.000000, 76.942093&lt;BR /&gt;0 : ippStsNoErr: No error, it's OK&lt;BR /&gt;Press any key to continue . . .&lt;BR /&gt;&lt;BR /&gt;Hope it helps. &lt;BR /&gt;Ying &lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2010 02:38:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808653#M3772</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-10-14T02:38:48Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808654#M3773</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I used this example to set up my 2D DFT. &amp;nbsp;It works great for small examples, but when I use it for a real image (1024x1024) I get a stack overflow. &amp;nbsp;Is there a work around?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Brooke&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2013 20:32:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808654#M3773</guid>
      <dc:creator>brooke_s_</dc:creator>
      <dc:date>2013-04-18T20:32:44Z</dc:date>
    </item>
    <item>
      <title>Try to increase Stack Reserve</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808655#M3774</link>
      <description>Try to increase Stack Reserve &amp;amp; Commit values in Linker Settings. Also, it would be nice to see more technical details about IPP version, your system &amp;amp; platform.</description>
      <pubDate>Fri, 19 Apr 2013 01:02:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808655#M3774</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-04-19T01:02:24Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808656#M3775</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am using IPP 7.1 on a Windows 7 machine and using VS 2008 Pro. By updating the linker settings as suggested, I can now run the 2D fft test code in my debugger, but when I compile my image processing library as a dll and call it from my Application (C# GUI) , I still get a stack oferflow error&amp;nbsp;(0xc00000fd) when I try the first 2Dfft.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 16:44:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808656#M3775</guid>
      <dc:creator>brooke_s_</dc:creator>
      <dc:date>2013-05-01T16:44:17Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...when I compile my image</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808657#M3776</link>
      <description>&amp;gt;&amp;gt;...when I compile my image processing library as a dll and call it from my Application (C# GUI) , I still get a stack oferflow
&amp;gt;&amp;gt;error (0xc00000fd) when I try the first 2Dfft...

Please try to create a C/C++ test case for the IPP function(s) you use in order to verify that the Stack Overflow problem is Not related to .NET environment.</description>
      <pubDate>Thu, 02 May 2013 13:18:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808657#M3776</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-05-02T13:18:26Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...When I compile that</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808658#M3777</link>
      <description>&amp;gt;&amp;gt;...When I compile that example code into a dll and then call it from my C# GUI...

Did you test your function implemented in the DLL with a C/C++ console application ( Not a C# .NET GUI application )?</description>
      <pubDate>Thu, 02 May 2013 14:19:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-is-ippDFT-length-specified/m-p/808658#M3777</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-05-02T14:19:50Z</dc:date>
    </item>
  </channel>
</rss>

