<?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: ippiMulCScale in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulCScale/m-p/946377#M18210</link>
    <description>&lt;DIV&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have tried the following lines and failed. It seems that the multiplication is performed to the whole image in some strange way. I don't think I'm using any padding. The bottom of the page contains the actual code that I used. The "size" is the size of my 1Darray of pixels. Theheight of region of interest is the same as"size" and thewidth is 1 since it's a 1D array.I have set the step to be 8 because the color of the pixels contains 4 channels (R, G, B and A) andit uses 2 bytes to store each 16-bit unsigned integer. I have added 3 to both the source and destination pointers so that it only performs the multiplication to the alpha channels. Thank you very much for your help.&lt;/P&gt;&lt;FONT size="2"&gt;
&lt;P&gt;IppiSize roi = {1, size}; &lt;/P&gt;
&lt;P&gt;ippiMulCScale_16u_C1R(((&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;const&lt;/FONT&gt;&lt;FONT size="2"&gt; Ipp16u*)inputColorTile.GetDataArray()) + 3, 8, (Ipp16u)factor, ((Ipp16u*)inputColorTile.GetDataArray()) + 3, 8, roi);&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Kennant&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 30 Jul 2004 07:26:25 GMT</pubDate>
    <dc:creator>k3nn4nt</dc:creator>
    <dc:date>2004-07-30T07:26:25Z</dc:date>
    <item>
      <title>ippiMulCScale</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulCScale/m-p/946375#M18208</link>
      <description>&lt;DIV&gt;Hello,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm a new user with the IPP. I'm trying to do a scaled multiplication with a constant on ONLY the alpha channel of a color array. The color array is an ONE-DIMENSION array. The elements inside the color array are aligned in the following manner;RGBARGBARGBA...... Ihave tried alot of ways to do it, but still failed. Yet, it seems to be such a simple problem. Thanks.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Kennant&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Jul 2004 05:20:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulCScale/m-p/946375#M18208</guid>
      <dc:creator>k3nn4nt</dc:creator>
      <dc:date>2004-07-29T05:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: ippiMulCScale</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulCScale/m-p/946376#M18209</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;if you have step == with *4 (means no padding) you can use such code as an example:&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;
&lt;P&gt;roiSize.width = 1;&lt;BR /&gt;roiSize.height = width * height;&lt;/P&gt;
&lt;P&gt;ippiMulC_8u_C1IRSfs(value, pSrcDst+3, 4, roiSize, scaleFactor);&lt;/P&gt;
&lt;P&gt;If you have some padding, you can use something like that:&lt;/P&gt;
&lt;P&gt;roiSize.width = 1;&lt;BR /&gt;roiSize.height = width;&lt;/P&gt;
&lt;P&gt;for (i = 0; i &amp;lt; height; i ++)&lt;BR /&gt;{&lt;BR /&gt; ippiMulC_8u_C1IRSfs(value, pSrcDst+3, 4, roiSize, scaleFactor);&lt;BR /&gt; pSrcDst += step;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Jul 2004 13:03:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulCScale/m-p/946376#M18209</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2004-07-29T13:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: ippiMulCScale</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulCScale/m-p/946377#M18210</link>
      <description>&lt;DIV&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have tried the following lines and failed. It seems that the multiplication is performed to the whole image in some strange way. I don't think I'm using any padding. The bottom of the page contains the actual code that I used. The "size" is the size of my 1Darray of pixels. Theheight of region of interest is the same as"size" and thewidth is 1 since it's a 1D array.I have set the step to be 8 because the color of the pixels contains 4 channels (R, G, B and A) andit uses 2 bytes to store each 16-bit unsigned integer. I have added 3 to both the source and destination pointers so that it only performs the multiplication to the alpha channels. Thank you very much for your help.&lt;/P&gt;&lt;FONT size="2"&gt;
&lt;P&gt;IppiSize roi = {1, size}; &lt;/P&gt;
&lt;P&gt;ippiMulCScale_16u_C1R(((&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;const&lt;/FONT&gt;&lt;FONT size="2"&gt; Ipp16u*)inputColorTile.GetDataArray()) + 3, 8, (Ipp16u)factor, ((Ipp16u*)inputColorTile.GetDataArray()) + 3, 8, roi);&lt;/FONT&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Kennant&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Jul 2004 07:26:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiMulCScale/m-p/946377#M18210</guid>
      <dc:creator>k3nn4nt</dc:creator>
      <dc:date>2004-07-30T07:26:25Z</dc:date>
    </item>
  </channel>
</rss>

