<?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 This is the compilation in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942822#M17833</link>
    <description>This is the compilation command:
 gcc -g test.c -o test  -L/opt/intel/ipp/lib/intel64 -I/opt/intel/ipp/include -lippcore -lipps -lippi -lippvc -lippcv

I use Ubuntu 12.04.</description>
    <pubDate>Wed, 07 Nov 2012 08:40:00 GMT</pubDate>
    <dc:creator>amir_l_</dc:creator>
    <dc:date>2012-11-07T08:40:00Z</dc:date>
    <item>
      <title>A problem with ippiCanny_16s8u_C1R</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942818#M17829</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;I wrote a small peice of code which works well on Windows and fails on Linux.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using IPP 7.1, Linux Ubuntu 12.04.&lt;/P&gt;
&lt;P&gt;In the code I am trying to use the canny filter and receive an error&amp;nbsp;ippStsBadArgErr. I double checked and my lower threshold is lower than the high threshold.&lt;/P&gt;
&lt;P&gt;The source code is:&lt;/P&gt;
&lt;P&gt;#include "ippi.h"&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;
&lt;P&gt;Ipp8u SRC[1280*720];&lt;BR /&gt;Ipp8u DST[1280*720];&lt;BR /&gt;short dyy[1920*1920],dxx[1920*1920];&lt;/P&gt;
&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; Ipp8u *src= SRC;&lt;BR /&gt; Ipp8u *dst= DST;&lt;BR /&gt; Ipp8u *buffer;&lt;BR /&gt; Ipp16s *dx= dxx;&lt;BR /&gt; Ipp16s *dy= dyy;&lt;BR /&gt; float low_edge_thresh= 0.1;&lt;BR /&gt; float high_edge_thresh= 1;&lt;BR /&gt; int width= 1280;&lt;BR /&gt; int height= 720;&lt;BR /&gt; IppStatus sts;&lt;BR /&gt; int size, size1, srcStep, dxStep, dyStep, dstStep;&lt;BR /&gt; IppiSize roi= {width,height};&lt;BR /&gt; srcStep= dstStep= width;&lt;BR /&gt; dxStep= dyStep= 2*width;&lt;BR /&gt; &lt;BR /&gt; // read source frame&lt;BR /&gt; FILE *f= fopen("Fame_1280x720.yuv", "rb");&lt;BR /&gt; fread(src, 1, 1280*720, f);&lt;BR /&gt; fclose(f);&lt;BR /&gt; &lt;BR /&gt; sts = ippiFilterSobelNegVertGetBufferSize_8u16s_C1R(roi, ippMskSize3x3, &amp;amp;size);&lt;BR /&gt; sts = ippiFilterSobelHorizGetBufferSize_8u16s_C1R(roi, ippMskSize3x3, &amp;amp;size1); &lt;BR /&gt; if (size&amp;lt;size1) size=size1;&lt;BR /&gt; ippiCannyGetSize(roi, &amp;amp;size1);&lt;BR /&gt; if (size&amp;lt;size1) size=size1;&lt;BR /&gt; &lt;BR /&gt; buffer = malloc(size);&lt;BR /&gt; &lt;BR /&gt; sts = ippiFilterSobelNegVertBorder_8u16s_C1R (src, srcStep, dx, dxStep, roi, ippMskSize3x3, ippBorderRepl, 0, buffer);&lt;BR /&gt; printf("sts=%d\n", sts);&lt;BR /&gt; sts = ippiFilterSobelHorizBorder_8u16s_C1R(src, srcStep, dy, dyStep, roi, ippMskSize3x3, ippBorderRepl, 0, buffer);&lt;BR /&gt; printf("sts=%d\n", sts); &lt;BR /&gt; sts = ippiCanny_16s8u_C1R(dx, dxStep, dy, dyStep, dst, dstStep, roi, low_edge_thresh, high_edge_thresh, buffer);&lt;BR /&gt; printf("sts=%d\n", sts);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 14:08:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942818#M17829</guid>
      <dc:creator>amir_l_</dc:creator>
      <dc:date>2012-11-05T14:08:37Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942819#M17830</link>
      <description>&amp;gt;&amp;gt;...
&amp;gt;&amp;gt;FILE *f= fopen("Fame_1280x720.yuv", "rb");
&amp;gt;&amp;gt;...

Could you upload "Fame_1280x720.yuv" file?</description>
      <pubDate>Wed, 07 Nov 2012 02:02:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942819#M17830</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-11-07T02:02:54Z</dc:date>
    </item>
    <item>
      <title>For our simple test we can</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942820#M17831</link>
      <description>For our simple test we can omit these 3 lines since it doesn't really matter what the bitmap is:

#include "ippi.h"
#include "ipp.h"
#include &lt;STDIO.H&gt;
#include &lt;STDLIB.H&gt;

Ipp8u SRC[1280*720];
Ipp8u DST[1280*720];
short dyy[1920*1920],dxx[1920*1920];

int main()
{
	Ipp8u *src= SRC;
	Ipp8u *dst= DST;
	Ipp8u *buffer;
	Ipp16s *dx= dxx;
	Ipp16s *dy= dyy;
	float low_edge_thresh= 0.1;
	float high_edge_thresh= 1;
	int width= 1280;
	int height= 720;
	IppStatus sts;
    int size, size1, srcStep, dxStep, dyStep, dstStep;
    IppiSize roi= {width,height};
	srcStep= dstStep= width;
	dxStep= dyStep= 2*width;
	
	// read source frame
//	FILE *f= fopen("Fame_1280x720_10f_org.yuv", "rb");
	//fread(src, 1, 1280*720, f);
	//fclose(f);
	
    sts = ippiFilterSobelNegVertGetBufferSize_8u16s_C1R(roi, ippMskSize3x3, &amp;amp;size);
    sts = ippiFilterSobelHorizGetBufferSize_8u16s_C1R(roi, ippMskSize3x3, &amp;amp;size1);	
    if (size&lt;SIZE1&gt;&lt;/SIZE1&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Wed, 07 Nov 2012 06:36:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942820#M17831</guid>
      <dc:creator>amir_l_</dc:creator>
      <dc:date>2012-11-07T06:36:02Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942821#M17832</link>
      <description>Hi,
 
Your sample shows no error on Canny (sts=0). Could you provide more detail on how you build the sample?
 
Regards,
Sergey</description>
      <pubDate>Wed, 07 Nov 2012 08:29:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942821#M17832</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2012-11-07T08:29:47Z</dc:date>
    </item>
    <item>
      <title>This is the compilation</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942822#M17833</link>
      <description>This is the compilation command:
 gcc -g test.c -o test  -L/opt/intel/ipp/lib/intel64 -I/opt/intel/ipp/include -lippcore -lipps -lippi -lippvc -lippcv

I use Ubuntu 12.04.</description>
      <pubDate>Wed, 07 Nov 2012 08:40:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942822#M17833</guid>
      <dc:creator>amir_l_</dc:creator>
      <dc:date>2012-11-07T08:40:00Z</dc:date>
    </item>
    <item>
      <title>I repeated the same</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942823#M17834</link>
      <description>I repeated the same experiment with RadHat and it works.</description>
      <pubDate>Wed, 07 Nov 2012 10:01:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942823#M17834</guid>
      <dc:creator>amir_l_</dc:creator>
      <dc:date>2012-11-07T10:01:28Z</dc:date>
    </item>
    <item>
      <title>Thank u for your help.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942824#M17835</link>
      <description>Thank u for your help.
I found the problem: In Linux "ipp.h" was not included and the compilation passed.
In Windows it failed. When I added ipp.h to the include files the error disappeared.</description>
      <pubDate>Wed, 07 Nov 2012 10:17:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942824#M17835</guid>
      <dc:creator>amir_l_</dc:creator>
      <dc:date>2012-11-07T10:17:40Z</dc:date>
    </item>
    <item>
      <title>Your statements are</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942825#M17836</link>
      <description>Your statements are contradicting:

&amp;gt;&amp;gt;...I wrote a small peice of code which works well on Windows and fails on Linux...

and

&amp;gt;&amp;gt;...In Linux "ipp.h" was not included and the compilation passed. In Windows it failed...

Anyway, thanks for the update.</description>
      <pubDate>Wed, 07 Nov 2012 13:55:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/A-problem-with-ippiCanny-16s8u-C1R/m-p/942825#M17836</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-11-07T13:55:08Z</dc:date>
    </item>
  </channel>
</rss>

