<?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 to copy a small image into a bigger one on arbitarary p in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-copy-a-small-image-into-a-bigger-one-on-arbitarary/m-p/926516#M16243</link>
    <description>&lt;DIV&gt;#include "ipp.h"&lt;BR /&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;BR /&gt; Ipp8u *pSrc, *pDst, *pTmp;&lt;BR /&gt; int SrcW, SrcH, SrcStep, DstW, DstH, DstStep;&lt;BR /&gt; IppStatus Status;&lt;BR /&gt; int Value, x, y, RoiL, RoiT;&lt;BR /&gt; IppiSize RoiSize;&lt;/DIV&gt;
&lt;DIV&gt; SrcW = 5; SrcH = 5; &lt;BR /&gt; SrcStep = (SrcW + 31) &amp;amp; (~31);//Ex.32ByteBoundary&lt;BR /&gt; pSrc = ippsMalloc_8u(SrcStep * SrcH);&lt;BR /&gt; DstW = 3; DstH = 3;&lt;BR /&gt; DstStep = (DstW + 3) &amp;amp; (~3);//Ex.4ByteBoundary&lt;BR /&gt; pDst = ippsMalloc_8u(DstStep * DstH);&lt;/DIV&gt;
&lt;DIV&gt; Status = ippsZero_8u(pSrc, SrcStep * SrcH);&lt;BR /&gt; Value = 1; &lt;BR /&gt; for ( y = 0; y &amp;lt; SrcH; y++ )&lt;BR /&gt; {&lt;BR /&gt; pTmp = pSrc + y * SrcStep;&lt;BR /&gt; for ( x = 0; x &amp;lt; SrcW; x++ )&lt;BR /&gt; {&lt;BR /&gt; *pTmp = Value; pTmp++; Value++;&lt;BR /&gt; } &lt;BR /&gt; }&lt;BR /&gt;// int i; pTmp = pSrc;&lt;BR /&gt;// for ( i = 0; i &amp;lt; SrcStep * SrcH; i++ ) &lt;BR /&gt;// {printf("%d
", *pTmp); pTmp++;}&lt;BR /&gt;// *pSrc&lt;BR /&gt;// 1, 2, 3, 4, 5 &lt;BR /&gt;// 6, 7, 8, 9, 10&lt;BR /&gt;// 11, 12, 13, 14, 15&lt;BR /&gt;// 16, 17, 18, 19, 20&lt;BR /&gt;// 21, 22, 23, 24, 25&lt;BR /&gt; RoiL = 1; RoiT = 1; &lt;BR /&gt; RoiSize.width = DstW; RoiSize.height = DstH;&lt;BR /&gt; Status = ippiCopy_8u_C1R(pSrc + RoiL + RoiT * SrcStep, &lt;BR /&gt; SrcStep, pDst, DstStep, RoiSize);&lt;BR /&gt; for ( y = 0; y &amp;lt; DstH; y++ )&lt;BR /&gt; {&lt;BR /&gt; pTmp = pDst + y * DstStep;&lt;BR /&gt; for ( x = 0; x &amp;lt; DstW; x++ )&lt;BR /&gt; {&lt;BR /&gt; printf("%d
", *pTmp); pTmp++; &lt;BR /&gt; } &lt;BR /&gt; }&lt;BR /&gt;// *pDst&lt;BR /&gt;// 7, 8, 9&lt;BR /&gt;// 12, 13, 14&lt;BR /&gt;// 17, 18, 19&lt;/DIV&gt;
&lt;DIV&gt; ippsFree(pDst);&lt;BR /&gt; ippsFree(pSrc);&lt;/DIV&gt;
&lt;DIV&gt;return 0;&lt;BR /&gt;}&lt;/DIV&gt;</description>
    <pubDate>Fri, 19 Nov 2004 14:56:15 GMT</pubDate>
    <dc:creator>seiji-torigoe</dc:creator>
    <dc:date>2004-11-19T14:56:15Z</dc:date>
    <item>
      <title>How to copy a small image into a bigger one on arbitarary position ?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-copy-a-small-image-into-a-bigger-one-on-arbitarary/m-p/926515#M16242</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hi !&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;1. I'm searching for a function or solution on how to copy a small image into a bigger one on &lt;SPAN&gt;Arbitarary &lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;position ( not just on first colomn) ?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;2 . How to cut image in-place if possible ( also with arbitarary ROI size and position )&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;Thanks a lot .&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Jack&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Nov 2004 23:15:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-copy-a-small-image-into-a-bigger-one-on-arbitarary/m-p/926515#M16242</guid>
      <dc:creator>yevgbeid</dc:creator>
      <dc:date>2004-11-18T23:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy a small image into a bigger one on arbitarary p</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-copy-a-small-image-into-a-bigger-one-on-arbitarary/m-p/926516#M16243</link>
      <description>&lt;DIV&gt;#include "ipp.h"&lt;BR /&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;BR /&gt; Ipp8u *pSrc, *pDst, *pTmp;&lt;BR /&gt; int SrcW, SrcH, SrcStep, DstW, DstH, DstStep;&lt;BR /&gt; IppStatus Status;&lt;BR /&gt; int Value, x, y, RoiL, RoiT;&lt;BR /&gt; IppiSize RoiSize;&lt;/DIV&gt;
&lt;DIV&gt; SrcW = 5; SrcH = 5; &lt;BR /&gt; SrcStep = (SrcW + 31) &amp;amp; (~31);//Ex.32ByteBoundary&lt;BR /&gt; pSrc = ippsMalloc_8u(SrcStep * SrcH);&lt;BR /&gt; DstW = 3; DstH = 3;&lt;BR /&gt; DstStep = (DstW + 3) &amp;amp; (~3);//Ex.4ByteBoundary&lt;BR /&gt; pDst = ippsMalloc_8u(DstStep * DstH);&lt;/DIV&gt;
&lt;DIV&gt; Status = ippsZero_8u(pSrc, SrcStep * SrcH);&lt;BR /&gt; Value = 1; &lt;BR /&gt; for ( y = 0; y &amp;lt; SrcH; y++ )&lt;BR /&gt; {&lt;BR /&gt; pTmp = pSrc + y * SrcStep;&lt;BR /&gt; for ( x = 0; x &amp;lt; SrcW; x++ )&lt;BR /&gt; {&lt;BR /&gt; *pTmp = Value; pTmp++; Value++;&lt;BR /&gt; } &lt;BR /&gt; }&lt;BR /&gt;// int i; pTmp = pSrc;&lt;BR /&gt;// for ( i = 0; i &amp;lt; SrcStep * SrcH; i++ ) &lt;BR /&gt;// {printf("%d
", *pTmp); pTmp++;}&lt;BR /&gt;// *pSrc&lt;BR /&gt;// 1, 2, 3, 4, 5 &lt;BR /&gt;// 6, 7, 8, 9, 10&lt;BR /&gt;// 11, 12, 13, 14, 15&lt;BR /&gt;// 16, 17, 18, 19, 20&lt;BR /&gt;// 21, 22, 23, 24, 25&lt;BR /&gt; RoiL = 1; RoiT = 1; &lt;BR /&gt; RoiSize.width = DstW; RoiSize.height = DstH;&lt;BR /&gt; Status = ippiCopy_8u_C1R(pSrc + RoiL + RoiT * SrcStep, &lt;BR /&gt; SrcStep, pDst, DstStep, RoiSize);&lt;BR /&gt; for ( y = 0; y &amp;lt; DstH; y++ )&lt;BR /&gt; {&lt;BR /&gt; pTmp = pDst + y * DstStep;&lt;BR /&gt; for ( x = 0; x &amp;lt; DstW; x++ )&lt;BR /&gt; {&lt;BR /&gt; printf("%d
", *pTmp); pTmp++; &lt;BR /&gt; } &lt;BR /&gt; }&lt;BR /&gt;// *pDst&lt;BR /&gt;// 7, 8, 9&lt;BR /&gt;// 12, 13, 14&lt;BR /&gt;// 17, 18, 19&lt;/DIV&gt;
&lt;DIV&gt; ippsFree(pDst);&lt;BR /&gt; ippsFree(pSrc);&lt;/DIV&gt;
&lt;DIV&gt;return 0;&lt;BR /&gt;}&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Nov 2004 14:56:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-copy-a-small-image-into-a-bigger-one-on-arbitarary/m-p/926516#M16243</guid>
      <dc:creator>seiji-torigoe</dc:creator>
      <dc:date>2004-11-19T14:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy a small image into a bigger one on arbitarary p</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-copy-a-small-image-into-a-bigger-one-on-arbitarary/m-p/926517#M16244</link>
      <description>&lt;DIV&gt;Thank you very much .&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Nov 2004 21:08:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-copy-a-small-image-into-a-bigger-one-on-arbitarary/m-p/926517#M16244</guid>
      <dc:creator>yevgbeid</dc:creator>
      <dc:date>2004-11-22T21:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy a small image into a bigger one on arbitarary p</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-copy-a-small-image-into-a-bigger-one-on-arbitarary/m-p/926518#M16245</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thank you very much .&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Nov 2004 21:12:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/How-to-copy-a-small-image-into-a-bigger-one-on-arbitarary/m-p/926518#M16245</guid>
      <dc:creator>yevgbeid</dc:creator>
      <dc:date>2004-11-22T21:12:58Z</dc:date>
    </item>
  </channel>
</rss>

