<?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 1-D Interpolation with IPP in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/1-D-Interpolation-with-IPP/m-p/825072#M5106</link>
    <description>Hi,&lt;BR /&gt;I am trying to use IPP libraries for 1-d interpolation, as mentioned in some of the post in forum to use ippresize for sinle row to get the 1-d interpolation.&lt;BR /&gt;my code is as follows,&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]Ipp32f image_temp[] = { 1 ,2 ,3,4,5,6,7,8,9,10,11,12};
rows = 1;cols=12;
newrows = 1;newcols = 34;
size.width = cols;
size.height = rows;
roi.x=0;
roi.y=0;
roi.width=cols;
roi.height=rows;
step = cols*sizeof(float);
newstep = newcols*sizeof(float);
newsize.width=newcols;
newsize.height=newrows;
image_new=(float *) calloc(newrows*newcols, sizeof(float));
   if(image_new == NULL){printf("Unable to allocate memory for image_new \n"); exit(1);}

   xfactor=(float)newcols/cols;
   yfactor=(float)newrows/rows;
   status= ippiResize_32f_C1R((float*)image_temp, size, step, roi, (float*)image_new, newstep, newsize, xfactor, yfactor,IPPI_INTER_CUBIC);
   if ( status != ippStsNoErr )
   {
      exit(1);
   }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The results are,&lt;BR /&gt;&lt;P&gt;1.0000 1.0000 1.0000 2.0000 2.0000 2.0000 3.0000 3.0000 4.0000 4.0000 4.0000 5.0000 5.0000 5.0000 6.0000 6.0000&lt;/P&gt;&lt;P&gt;6.0000 7.0000 7.0000 8.0000 8.0000 9.0000 9.0000 9.0000 10.0000 10.0000 10.0000 11.0000 11.0000 12.0000 12.0000 0.0000&lt;/P&gt;&lt;BR /&gt;Which somehow are truncated ?? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks ,&lt;BR /&gt;Suresh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[/bash]&lt;/PRE&gt;</description>
    <pubDate>Thu, 22 Sep 2011 08:48:21 GMT</pubDate>
    <dc:creator>sureshdeoda</dc:creator>
    <dc:date>2011-09-22T08:48:21Z</dc:date>
    <item>
      <title>1-D Interpolation with IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/1-D-Interpolation-with-IPP/m-p/825072#M5106</link>
      <description>Hi,&lt;BR /&gt;I am trying to use IPP libraries for 1-d interpolation, as mentioned in some of the post in forum to use ippresize for sinle row to get the 1-d interpolation.&lt;BR /&gt;my code is as follows,&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]Ipp32f image_temp[] = { 1 ,2 ,3,4,5,6,7,8,9,10,11,12};
rows = 1;cols=12;
newrows = 1;newcols = 34;
size.width = cols;
size.height = rows;
roi.x=0;
roi.y=0;
roi.width=cols;
roi.height=rows;
step = cols*sizeof(float);
newstep = newcols*sizeof(float);
newsize.width=newcols;
newsize.height=newrows;
image_new=(float *) calloc(newrows*newcols, sizeof(float));
   if(image_new == NULL){printf("Unable to allocate memory for image_new \n"); exit(1);}

   xfactor=(float)newcols/cols;
   yfactor=(float)newrows/rows;
   status= ippiResize_32f_C1R((float*)image_temp, size, step, roi, (float*)image_new, newstep, newsize, xfactor, yfactor,IPPI_INTER_CUBIC);
   if ( status != ippStsNoErr )
   {
      exit(1);
   }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The results are,&lt;BR /&gt;&lt;P&gt;1.0000 1.0000 1.0000 2.0000 2.0000 2.0000 3.0000 3.0000 4.0000 4.0000 4.0000 5.0000 5.0000 5.0000 6.0000 6.0000&lt;/P&gt;&lt;P&gt;6.0000 7.0000 7.0000 8.0000 8.0000 9.0000 9.0000 9.0000 10.0000 10.0000 10.0000 11.0000 11.0000 12.0000 12.0000 0.0000&lt;/P&gt;&lt;BR /&gt;Which somehow are truncated ?? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks ,&lt;BR /&gt;Suresh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[/bash]&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Sep 2011 08:48:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/1-D-Interpolation-with-IPP/m-p/825072#M5106</guid>
      <dc:creator>sureshdeoda</dc:creator>
      <dc:date>2011-09-22T08:48:21Z</dc:date>
    </item>
  </channel>
</rss>

