<?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: DMIP reuse graph with different inputs? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/DMIP-reuse-graph-with-different-inputs/m-p/900079#M12621</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/427384"&gt;Goran N&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I have a set of 10 images that I need to run through a DMIP graph. I would like to have a loop that changes inputs and run "g.Execute()" 10 times. How to do this? &lt;BR /&gt;I tried to re-initialize SrcNode, but it wouldn't let me.&lt;BR /&gt;I hope I don't have to crate a new Graph for every iteration. &lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hi!&lt;BR /&gt;&lt;BR /&gt;Currently, the only way to do this is to copy new images into DMIP::Image object. Hope, that all your source images have the same parameters - i.e. data type/ width / height / number of channels - otherwise you will not be able to re-use graph, because during graph compilation all physical image dimensions are used in data calculations.&lt;BR /&gt;&lt;BR /&gt;So, if all your inputs have the same dimensions, you can do the following:&lt;BR /&gt;&lt;OL&gt;
&lt;LI&gt;Create a source DMIP::Image object. Before object creation you'll need to allocate space for real image. Then in object constructor you'll specify the buffer parameters - e.g. &lt;SPAN style="color: #0000ff;"&gt;Image(void* &lt;STRONG&gt;data&lt;/STRONG&gt;, IppDataType type, IppChannels chan, IppiSize roi, int step, int top=0, int bot=0, int lef=0, int rig=0, bool inverserow=false)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;The above &lt;SPAN style="color: #0000ff;"&gt;data &lt;/SPAN&gt;pointer is the pointer where you can copy new source images to.&lt;/LI&gt;
&lt;LI&gt;After you compile the graph, in the loop, copy next source image from where you keep them to &lt;SPAN style="color: #0000ff;"&gt;data &lt;/SPAN&gt;pointer. &lt;SPAN style="color: #0000ff;"&gt;Use ippiCopy functions for that&lt;/SPAN&gt;.&lt;/LI&gt;
&lt;LI&gt;Execute method will create a destination image. The DMIP::DstNode has the similar DMIP::Image object with output data buffer pointer. You may copy destination image from there to wherever you want. Again, use &lt;SPAN style="color: #0000ff;"&gt;ippiCopy&lt;/SPAN&gt;.&lt;/LI&gt;
&lt;/OL&gt;Regards,&lt;BR /&gt;Sergey&lt;BR /&gt;&lt;BR /&gt;P.S. New versions of DMIP will have some specific methods to simplify DMIP usage in stream mode, when the graph is the same, but the data is changing.</description>
    <pubDate>Mon, 10 Aug 2009 08:57:16 GMT</pubDate>
    <dc:creator>Sergey_K_Intel</dc:creator>
    <dc:date>2009-08-10T08:57:16Z</dc:date>
    <item>
      <title>DMIP reuse graph with different inputs?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/DMIP-reuse-graph-with-different-inputs/m-p/900078#M12620</link>
      <description>I have a set of 10 images that I need to run through a DMIP graph. I would like to have a loop that changes inputs and run "g.Execute()" 10 times. How to do this? &lt;BR /&gt;I tried to re-initialize SrcNode, but it wouldn't let me.&lt;BR /&gt;I hope I don't have to crate a new Graph for every iteration. &lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 07 Aug 2009 18:01:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/DMIP-reuse-graph-with-different-inputs/m-p/900078#M12620</guid>
      <dc:creator>Goran_N</dc:creator>
      <dc:date>2009-08-07T18:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: DMIP reuse graph with different inputs?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/DMIP-reuse-graph-with-different-inputs/m-p/900079#M12621</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/427384"&gt;Goran N&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I have a set of 10 images that I need to run through a DMIP graph. I would like to have a loop that changes inputs and run "g.Execute()" 10 times. How to do this? &lt;BR /&gt;I tried to re-initialize SrcNode, but it wouldn't let me.&lt;BR /&gt;I hope I don't have to crate a new Graph for every iteration. &lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hi!&lt;BR /&gt;&lt;BR /&gt;Currently, the only way to do this is to copy new images into DMIP::Image object. Hope, that all your source images have the same parameters - i.e. data type/ width / height / number of channels - otherwise you will not be able to re-use graph, because during graph compilation all physical image dimensions are used in data calculations.&lt;BR /&gt;&lt;BR /&gt;So, if all your inputs have the same dimensions, you can do the following:&lt;BR /&gt;&lt;OL&gt;
&lt;LI&gt;Create a source DMIP::Image object. Before object creation you'll need to allocate space for real image. Then in object constructor you'll specify the buffer parameters - e.g. &lt;SPAN style="color: #0000ff;"&gt;Image(void* &lt;STRONG&gt;data&lt;/STRONG&gt;, IppDataType type, IppChannels chan, IppiSize roi, int step, int top=0, int bot=0, int lef=0, int rig=0, bool inverserow=false)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;The above &lt;SPAN style="color: #0000ff;"&gt;data &lt;/SPAN&gt;pointer is the pointer where you can copy new source images to.&lt;/LI&gt;
&lt;LI&gt;After you compile the graph, in the loop, copy next source image from where you keep them to &lt;SPAN style="color: #0000ff;"&gt;data &lt;/SPAN&gt;pointer. &lt;SPAN style="color: #0000ff;"&gt;Use ippiCopy functions for that&lt;/SPAN&gt;.&lt;/LI&gt;
&lt;LI&gt;Execute method will create a destination image. The DMIP::DstNode has the similar DMIP::Image object with output data buffer pointer. You may copy destination image from there to wherever you want. Again, use &lt;SPAN style="color: #0000ff;"&gt;ippiCopy&lt;/SPAN&gt;.&lt;/LI&gt;
&lt;/OL&gt;Regards,&lt;BR /&gt;Sergey&lt;BR /&gt;&lt;BR /&gt;P.S. New versions of DMIP will have some specific methods to simplify DMIP usage in stream mode, when the graph is the same, but the data is changing.</description>
      <pubDate>Mon, 10 Aug 2009 08:57:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/DMIP-reuse-graph-with-different-inputs/m-p/900079#M12621</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2009-08-10T08:57:16Z</dc:date>
    </item>
  </channel>
</rss>

