<?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 Re: How do I use the Canny function? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-use-the-Canny-function/m-p/994703#M22788</link>
    <description>&lt;DIV&gt;Hi, did you look through the forum, I remember there was a question about this function? May it help you?&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;A href="http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=465" target="_blank"&gt;&lt;U&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=465" target="_blank"&gt;http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=465&lt;/A&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 10 Mar 2005 21:37:27 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2005-03-10T21:37:27Z</dc:date>
    <item>
      <title>How do I use the Canny function?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-use-the-Canny-function/m-p/994702#M22787</link>
      <description>&lt;DIV&gt;I am using the Canny example (slightly modified) from Taylor's book on IPP and it does not work. The following is a brief listing of my code please tell me if you need more information I can post it. Please keep in mind that I am very new to IPP and hopefully this is an obvious problem. The result of the edge detected image is shrunk to 1/3 and the colors are off. Please help!&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;buf_ is a LocalBuffer (another class from Taylor's book)&lt;/DIV&gt;
&lt;DIV&gt;void image_8u::edge_detection(image_8u &amp;amp;source)&lt;/DIV&gt;
&lt;DIV&gt;{&lt;/DIV&gt;
&lt;DIV&gt; int buf_size;&lt;/DIV&gt;
&lt;DIV&gt; IppiSize dst_size;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt; dst_size.width = size_.width;&lt;/DIV&gt;
&lt;DIV&gt; dst_size.height = size_.height;&lt;/DIV&gt;
&lt;DIV&gt; ippiCannyGetSize(dst_size, &amp;amp;buf_size);&lt;/DIV&gt;
&lt;DIV&gt; int tmp_size = stride_ * dst_size.height * sizeof(Ipp16s);&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;buf_.SetMinAlloc(tmp_size * 2 + buf_size);&lt;/DIV&gt;
&lt;DIV&gt;Ipp16s *pTmpX = (Ipp16s*)buf_.Alloc_8u(tmp_size);&lt;/DIV&gt;
&lt;DIV&gt;Ipp16s *pTmpY = (Ipp16s*)buf_.Alloc_8u(tmp_size);&lt;/DIV&gt;
&lt;DIV&gt;Ipp8u *pBuffer = buf_.Alloc_8u(buf_size);&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;IppStatus st;&lt;/DIV&gt;
&lt;DIV&gt;st = ippiSobel3x3_Dx_8u16s_C1R(source.p_data_, source.stride_,&lt;/DIV&gt;
&lt;DIV&gt; pTmpX, stride_ * sizeof(Ipp16s), dst_size);&lt;/DIV&gt;
&lt;DIV&gt;st = ippiSobel3x3_Dy_8u16s_C1R(source.p_data_, source.stride_,&lt;/DIV&gt;
&lt;DIV&gt; pTmpY, stride_ * sizeof(Ipp16s), IPCV_ORIGIN_BL, dst_size);&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;st = ippiCanny_16s8u_C1R(pTmpX, stride_ * 2, pTmpY, stride_ * 2,&lt;/DIV&gt;
&lt;DIV&gt; p_data, stride_, dst_size, 0.0, 64.0, pBuffer);&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;buf_.ReleaseAll();&lt;/DIV&gt;
&lt;DIV&gt;}&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Mar 2005 23:16:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-use-the-Canny-function/m-p/994702#M22787</guid>
      <dc:creator>Deleted_U_Intel</dc:creator>
      <dc:date>2005-03-03T23:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the Canny function?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-use-the-Canny-function/m-p/994703#M22788</link>
      <description>&lt;DIV&gt;Hi, did you look through the forum, I remember there was a question about this function? May it help you?&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;A href="http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=465" target="_blank"&gt;&lt;U&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=465" target="_blank"&gt;http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=465&lt;/A&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Mar 2005 21:37:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-use-the-Canny-function/m-p/994703#M22788</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2005-03-10T21:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the Canny function?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-use-the-Canny-function/m-p/994704#M22789</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;thanks your algo helped,&lt;/DIV&gt;
&lt;DIV&gt;my code is as follows, which works, and hope it helps someone else:&lt;/DIV&gt;
&lt;DIV&gt;Assume that you have the input image in Ipp8u *pGData8u_, and IppiSize iSize_ with width and height given; then the function to do canny edge is as follows which returns the answer inpProsData8u_ which is assumed to be defined earlier as Ipp8u *pProsData8u_ and allocated memory&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;void&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; FindEdge()&lt;P&gt;&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;IppStatus st;&lt;/P&gt;
&lt;P&gt;Ipp8u *ptemp8u_;&lt;/P&gt;
&lt;P&gt;Ipp16s *pDerX;&lt;/P&gt;
&lt;P&gt;Ipp16s *pDerY;&lt;/P&gt;
&lt;P&gt;IppiSize b16sSize;&lt;/P&gt;
&lt;P&gt;b16sSize.width = iSize_.width;&lt;/P&gt;
&lt;P&gt;b16sSize.height= iSize_.height;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; bStride16s, iStride8u_;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; buf_size;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ptemp8u_ = ippiMalloc_8u_C1(iSize_.width, iSize_.height, &amp;amp;iStride8u_);&lt;/P&gt;
&lt;P&gt;pDerX = ippiMalloc_16s_C1(b16sSize.width, b16sSize.height, &amp;amp;bStride16s);&lt;/P&gt;
&lt;P&gt;pDerY = ippiMalloc_16s_C1(b16sSize.width, b16sSize.height, &amp;amp;bStride16s);&lt;/P&gt;
&lt;P&gt;st = ippiCannyGetSize(b16sSize, &amp;amp;buf_size);&lt;/P&gt;
&lt;P&gt;Ipp8u *pBuffer = ippsMalloc_8u(buf_size);;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT color="#008000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size="2"&gt;
&lt;P&gt;&lt;/P&gt;st = ippiSobel3x3_Dx_8u16s_C1R(pGData8u_, iStride8u_,pDerX, bStride16s , b16sSize);
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;st = ippiSobel3x3_Dy_8u16s_C1R(pGData8u_, iStride8u_,pDerY, bStride16s , IPCV_ORIGIN_TL, b16sSize);&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;
&lt;P&gt;st = ippiCanny_16s8u_C1R(pDerX, bStride16s, pDerY, bStride16s, pProsData8u_, iStride8u_, iSize_, 0.0, 64.0, pBuffer);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT color="#008000" size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size="2"&gt;}
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Apr 2005 06:27:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-use-the-Canny-function/m-p/994704#M22789</guid>
      <dc:creator>mazadic</dc:creator>
      <dc:date>2005-04-28T06:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the Canny function?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-use-the-Canny-function/m-p/994705#M22790</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;thanks for sharing code here, it definetely helps someone&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt; Vladimir&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Apr 2005 18:47:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-do-I-use-the-Canny-function/m-p/994705#M22790</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2005-04-28T18:47:47Z</dc:date>
    </item>
  </channel>
</rss>

