<?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 OpenCV and IPP in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-and-IPP/m-p/827169#M5265</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm using Ipp and OpenCV in a same program and foudn a very strange behavior while using cvNamedWindow and ippiMalloc. Here is a very easy example code (just replace "Picture" by another folder name) that always bug after the fourth iteration.&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;MATH.H&gt;&lt;BR /&gt;#include "cv.h"&lt;BR /&gt;#include "highgui.h"&lt;BR /&gt;#include "ipp.h"&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; int i;&lt;BR /&gt; int bound=1600;&lt;BR /&gt; for (i=1;i&amp;lt;=bound;i++)&lt;BR /&gt; {&lt;BR /&gt;&lt;BR /&gt; /* DISPLAY AN OPENCV IMAGE */&lt;BR /&gt; IplImage* pcv_Img=NULL;&lt;BR /&gt; pcv_Img = cvLoadImage("Picture",CV_LOAD_IMAGE_COLOR);&lt;BR /&gt; cvNamedWindow("OpenCV picture", CV_WINDOW_AUTOSIZE);&lt;BR /&gt; cvShowImage("Open picture", pcv_Img);&lt;BR /&gt; cvWaitKey(0);&lt;BR /&gt; cvReleaseImage(&amp;amp;pcv_Img);&lt;BR /&gt;&lt;BR /&gt; /* COMPUTE WITH IPP */&lt;BR /&gt; int pitch_proba,m,n;&lt;BR /&gt; Ipp32f* Proba=NULL;&lt;BR /&gt; Proba=ippiMalloc_32f_C1(4,5,&amp;amp;pitch_proba);&lt;BR /&gt; for (m=0;m&amp;lt;5;m++)&lt;BR /&gt; {&lt;BR /&gt; for (n=0;n&amp;lt;4;n++)&lt;BR /&gt; {&lt;BR /&gt; Proba[n+m*pitch_proba]=(Ipp32f) (0.0);&lt;BR /&gt; printf("%f ",Proba[n+m*pitch_proba]);&lt;BR /&gt; }&lt;BR /&gt; printf("\\n");&lt;BR /&gt; }&lt;BR /&gt; ippiFree(Proba);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; }&lt;BR /&gt; printf("\\n \\n");&lt;BR /&gt;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Do you have any idea how to manage that?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/MATH.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
    <pubDate>Mon, 10 Jan 2011 12:11:39 GMT</pubDate>
    <dc:creator>bibi88</dc:creator>
    <dc:date>2011-01-10T12:11:39Z</dc:date>
    <item>
      <title>OpenCV and IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-and-IPP/m-p/827169#M5265</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm using Ipp and OpenCV in a same program and foudn a very strange behavior while using cvNamedWindow and ippiMalloc. Here is a very easy example code (just replace "Picture" by another folder name) that always bug after the fourth iteration.&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;#include &lt;MATH.H&gt;&lt;BR /&gt;#include "cv.h"&lt;BR /&gt;#include "highgui.h"&lt;BR /&gt;#include "ipp.h"&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; int i;&lt;BR /&gt; int bound=1600;&lt;BR /&gt; for (i=1;i&amp;lt;=bound;i++)&lt;BR /&gt; {&lt;BR /&gt;&lt;BR /&gt; /* DISPLAY AN OPENCV IMAGE */&lt;BR /&gt; IplImage* pcv_Img=NULL;&lt;BR /&gt; pcv_Img = cvLoadImage("Picture",CV_LOAD_IMAGE_COLOR);&lt;BR /&gt; cvNamedWindow("OpenCV picture", CV_WINDOW_AUTOSIZE);&lt;BR /&gt; cvShowImage("Open picture", pcv_Img);&lt;BR /&gt; cvWaitKey(0);&lt;BR /&gt; cvReleaseImage(&amp;amp;pcv_Img);&lt;BR /&gt;&lt;BR /&gt; /* COMPUTE WITH IPP */&lt;BR /&gt; int pitch_proba,m,n;&lt;BR /&gt; Ipp32f* Proba=NULL;&lt;BR /&gt; Proba=ippiMalloc_32f_C1(4,5,&amp;amp;pitch_proba);&lt;BR /&gt; for (m=0;m&amp;lt;5;m++)&lt;BR /&gt; {&lt;BR /&gt; for (n=0;n&amp;lt;4;n++)&lt;BR /&gt; {&lt;BR /&gt; Proba[n+m*pitch_proba]=(Ipp32f) (0.0);&lt;BR /&gt; printf("%f ",Proba[n+m*pitch_proba]);&lt;BR /&gt; }&lt;BR /&gt; printf("\\n");&lt;BR /&gt; }&lt;BR /&gt; ippiFree(Proba);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; }&lt;BR /&gt; printf("\\n \\n");&lt;BR /&gt;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Do you have any idea how to manage that?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/MATH.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Mon, 10 Jan 2011 12:11:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-and-IPP/m-p/827169#M5265</guid>
      <dc:creator>bibi88</dc:creator>
      <dc:date>2011-01-10T12:11:39Z</dc:date>
    </item>
    <item>
      <title>OpenCV and IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-and-IPP/m-p/827170#M5266</link>
      <description>bib88,&lt;BR /&gt;&lt;BR /&gt;you asking of any idea to manage what? Couldyou please be so kind to describe what exactly strange behaviour you see with that program and what youexpected to see instead?&lt;BR /&gt;&lt;BR /&gt;Vladimir</description>
      <pubDate>Mon, 10 Jan 2011 16:18:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-and-IPP/m-p/827170#M5266</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2011-01-10T16:18:18Z</dc:date>
    </item>
    <item>
      <title>OpenCV and IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-and-IPP/m-p/827171#M5267</link>
      <description>Hello Vladimir,&lt;BR /&gt;

&lt;BR /&gt;

Sorry if I've been not clear. The previous code is separated into two parts. &lt;BR /&gt;

The first part uses OpenCV to display iteratively the same image.&lt;BR /&gt;

The second part uses IPP to set to zero a Ipp32f image.&lt;BR /&gt;
Running these two part separately works well, but when you put it one below other (as I've done in the previous code), you get an error (it seems to be a conflicting memory superposition). The strange behavior is that it comes always after 4 iterations.&lt;BR /&gt;I suppose I've done a mistake somewhere, but my memory allocation seems at first sight good... &lt;BR /&gt;I really apologize if the error comes again for mine!&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Bibi88&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jan 2011 17:19:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-and-IPP/m-p/827171#M5267</guid>
      <dc:creator>bibi88</dc:creator>
      <dc:date>2011-01-10T17:19:04Z</dc:date>
    </item>
    <item>
      <title>OpenCV and IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-and-IPP/m-p/827172#M5268</link>
      <description>Hm, what kind of error you talk about? Do you mean printf operator does not show expected values or there is access violation or what?&lt;BR /&gt;&lt;BR /&gt;BTW, instead of raw loop for initialization of image data (where it is easy to make address arithmetic mistakes) you may want to try ippiSet_32f_C1R function, so your loop might be rewritten like piece of code below&lt;BR /&gt;&lt;BR /&gt;Proba=ippiMalloc_32f_C1(4,5,&amp;amp;pitch_proba);&lt;BR /&gt;IppiSize roi = {4, 5};&lt;BR /&gt;ippiSet_32f_C1R(0.0, Proba, pitch_proba, roi)&lt;BR /&gt;ippiFree(Proba);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Vladimir</description>
      <pubDate>Mon, 10 Jan 2011 18:01:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-and-IPP/m-p/827172#M5268</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2011-01-10T18:01:01Z</dc:date>
    </item>
  </channel>
</rss>

