<?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: AddWeighted using a &amp;quot;third image&amp;quot; pixel weights in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/AddWeighted-using-a-quot-third-image-quot-pixel-weights/m-p/923321#M15917</link>
    <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#000080" size="2"&gt;
&lt;P&gt;This function exists in ippCV:&lt;/P&gt;&lt;/FONT&gt;&lt;FONT face="Courier New CYR" color="#000080" size="2"&gt;
&lt;P&gt;/* ///////////////////////////////////////////////////////////////////////////////////////&lt;BR /&gt;// Name: ippiAddWeighted_8u32f_C1IR, ippiAddWeighted_8s32f_C1IR,&lt;BR /&gt;// ippiAddWeighted_16u32f_C1IR, ippiAddWeighted_32f_C1IR,&lt;BR /&gt;// ippiAddWeighted_8u32f_C1IMR, ippiAddWeighted_8s32f_C1IMR,&lt;BR /&gt;// ippiAddWeighted_16u32f_C1IMR,ippiAddWeighted_32f_C1IMR&lt;BR /&gt;//&lt;BR /&gt;// Purpose: Add image, multiplied by alpha, to accumulator, multiplied by (1 - alpha).&lt;BR /&gt;//&lt;BR /&gt;// Return:&lt;BR /&gt;// ippStsNoErr Ok&lt;BR /&gt;// ippStsNullPtrErr One of pointers is NULL&lt;BR /&gt;// ippStsSizeErr The width or height of images is less or equal zero&lt;BR /&gt;// ippStsStepErr Step is too small to fit image.&lt;BR /&gt;// ippStsNotEvenStepErr Step is not multiple of element.&lt;BR /&gt;//&lt;BR /&gt;// Arguments:&lt;BR /&gt;// pSrc1 Pointer to first source image&lt;BR /&gt;// src1Step Wtep in the first source image&lt;BR /&gt;// pSrc2 Pointer to second source image&lt;BR /&gt;// src2Step Wtep in the second source image&lt;BR /&gt;// pMask Pointer to mask&lt;BR /&gt;// maskStep Wtep in the mask image&lt;BR /&gt;// pSrcDst Pointer to accumulator image&lt;BR /&gt;// srcDstStep Wtep in the accumulator image&lt;BR /&gt;// roiSize Image size&lt;BR /&gt;// alpha Weight of source image&lt;BR /&gt;*/&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2"&gt;
&lt;P&gt;Or something look like this:&lt;/P&gt;&lt;/FONT&gt;&lt;FONT face="Courier New CYR" color="#000080" size="2"&gt;
&lt;P&gt;/* /////////////////////////////////////////////////////////////////////////////&lt;BR /&gt;// Alpha Compositing Operations&lt;BR /&gt;///////////////////////////////////////////////////////////////////////////// */&lt;/P&gt;
&lt;P&gt;// Types of compositing operation (alphaType)&lt;BR /&gt;// OVER ippAlphaOver ippAlphaOverPremul&lt;BR /&gt;// IN ippAlphaIn ippAlphaInPremul&lt;BR /&gt;// OUT ippAlphaOut ippAlphaOutPremul&lt;BR /&gt;// ATOP ippAlphaATop ippAlphaATopPremul&lt;BR /&gt;// XOR ippAlphaXor ippAlphaXorPremul&lt;BR /&gt;// PLUS ippAlphaPlus ippAlphaPlusPremul&lt;BR /&gt;//&lt;BR /&gt;// Type result pixel result pixel (Premul) result alpha&lt;BR /&gt;// OVER aA*A+(1-aA)*aB*B A+(1-aA)*B aA+(1-aA)*aB&lt;BR /&gt;// IN aA*A*aB A*aB aA*aB&lt;BR /&gt;// OUT aA*A*(1-aB) A*(1-aB) aA*(1-aB)&lt;BR /&gt;// ATOP aA*A*aB+(1-aA)*aB*B A*aB+(1-aA)*B aA*aB+(1-aA)*aB&lt;BR /&gt;// XOR aA*A*(1-aB)+(1-aA)*aB*B A*(1-aB)+(1-aA)*B aA*(1-aB)+(1-aA)*aB&lt;BR /&gt;// PLUS aA*A+aB*B A+B aA+aB&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 18 Dec 2004 01:54:19 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2004-12-18T01:54:19Z</dc:date>
    <item>
      <title>AddWeighted using a "third image" pixel weights</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/AddWeighted-using-a-quot-third-image-quot-pixel-weights/m-p/923320#M15916</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm looking for an IPP optimized mutation of the AddWeighted operation in which constant value weight would be replaced by the 0/1 pixel weights coming fromthe "third image" as follows:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;image[x,y] = image3[x,y]*image1[x,y] + (1-image3&lt;X&gt;&lt;Y&gt;)*image2&lt;X&gt;&lt;Y&gt;&lt;/Y&gt;&lt;/X&gt;&lt;/Y&gt;&lt;/X&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;assuming that "non-zero" value of compare operation below = 1???&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Courier" size="2"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Courier" size="2"&gt;image3[x,y] = ippiCompareEqualEps (image1[x,y], image2[x,y]);&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Best regards,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;AndrewK&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Dec 2004 22:33:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/AddWeighted-using-a-quot-third-image-quot-pixel-weights/m-p/923320#M15916</guid>
      <dc:creator>andrewk88</dc:creator>
      <dc:date>2004-12-14T22:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: AddWeighted using a "third image" pixel weights</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/AddWeighted-using-a-quot-third-image-quot-pixel-weights/m-p/923321#M15917</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#000080" size="2"&gt;
&lt;P&gt;This function exists in ippCV:&lt;/P&gt;&lt;/FONT&gt;&lt;FONT face="Courier New CYR" color="#000080" size="2"&gt;
&lt;P&gt;/* ///////////////////////////////////////////////////////////////////////////////////////&lt;BR /&gt;// Name: ippiAddWeighted_8u32f_C1IR, ippiAddWeighted_8s32f_C1IR,&lt;BR /&gt;// ippiAddWeighted_16u32f_C1IR, ippiAddWeighted_32f_C1IR,&lt;BR /&gt;// ippiAddWeighted_8u32f_C1IMR, ippiAddWeighted_8s32f_C1IMR,&lt;BR /&gt;// ippiAddWeighted_16u32f_C1IMR,ippiAddWeighted_32f_C1IMR&lt;BR /&gt;//&lt;BR /&gt;// Purpose: Add image, multiplied by alpha, to accumulator, multiplied by (1 - alpha).&lt;BR /&gt;//&lt;BR /&gt;// Return:&lt;BR /&gt;// ippStsNoErr Ok&lt;BR /&gt;// ippStsNullPtrErr One of pointers is NULL&lt;BR /&gt;// ippStsSizeErr The width or height of images is less or equal zero&lt;BR /&gt;// ippStsStepErr Step is too small to fit image.&lt;BR /&gt;// ippStsNotEvenStepErr Step is not multiple of element.&lt;BR /&gt;//&lt;BR /&gt;// Arguments:&lt;BR /&gt;// pSrc1 Pointer to first source image&lt;BR /&gt;// src1Step Wtep in the first source image&lt;BR /&gt;// pSrc2 Pointer to second source image&lt;BR /&gt;// src2Step Wtep in the second source image&lt;BR /&gt;// pMask Pointer to mask&lt;BR /&gt;// maskStep Wtep in the mask image&lt;BR /&gt;// pSrcDst Pointer to accumulator image&lt;BR /&gt;// srcDstStep Wtep in the accumulator image&lt;BR /&gt;// roiSize Image size&lt;BR /&gt;// alpha Weight of source image&lt;BR /&gt;*/&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#000080" size="2"&gt;
&lt;P&gt;Or something look like this:&lt;/P&gt;&lt;/FONT&gt;&lt;FONT face="Courier New CYR" color="#000080" size="2"&gt;
&lt;P&gt;/* /////////////////////////////////////////////////////////////////////////////&lt;BR /&gt;// Alpha Compositing Operations&lt;BR /&gt;///////////////////////////////////////////////////////////////////////////// */&lt;/P&gt;
&lt;P&gt;// Types of compositing operation (alphaType)&lt;BR /&gt;// OVER ippAlphaOver ippAlphaOverPremul&lt;BR /&gt;// IN ippAlphaIn ippAlphaInPremul&lt;BR /&gt;// OUT ippAlphaOut ippAlphaOutPremul&lt;BR /&gt;// ATOP ippAlphaATop ippAlphaATopPremul&lt;BR /&gt;// XOR ippAlphaXor ippAlphaXorPremul&lt;BR /&gt;// PLUS ippAlphaPlus ippAlphaPlusPremul&lt;BR /&gt;//&lt;BR /&gt;// Type result pixel result pixel (Premul) result alpha&lt;BR /&gt;// OVER aA*A+(1-aA)*aB*B A+(1-aA)*B aA+(1-aA)*aB&lt;BR /&gt;// IN aA*A*aB A*aB aA*aB&lt;BR /&gt;// OUT aA*A*(1-aB) A*(1-aB) aA*(1-aB)&lt;BR /&gt;// ATOP aA*A*aB+(1-aA)*aB*B A*aB+(1-aA)*B aA*aB+(1-aA)*aB&lt;BR /&gt;// XOR aA*A*(1-aB)+(1-aA)*aB*B A*(1-aB)+(1-aA)*B aA*(1-aB)+(1-aA)*aB&lt;BR /&gt;// PLUS aA*A+aB*B A+B aA+aB&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 18 Dec 2004 01:54:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/AddWeighted-using-a-quot-third-image-quot-pixel-weights/m-p/923321#M15917</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2004-12-18T01:54:19Z</dc:date>
    </item>
  </channel>
</rss>

