<?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 iipiSqrDistanceSame_Norm normalization in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/iipiSqrDistanceSame-Norm-normalization/m-p/906757#M13583</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm using the image proximity measure iipiSqrDistanceSame_Norm and I don't get how the normalization is done. &lt;BR /&gt;I have done the calculations on the sample of the manual by myself and I don't get the same results.han&lt;BR /&gt;&lt;BR /&gt;Could anybody help me?&lt;BR /&gt;Thanks in advanced,&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;pepa&lt;BR /&gt;</description>
    <pubDate>Sun, 10 May 2009 20:50:35 GMT</pubDate>
    <dc:creator>nose00</dc:creator>
    <dc:date>2009-05-10T20:50:35Z</dc:date>
    <item>
      <title>iipiSqrDistanceSame_Norm normalization</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/iipiSqrDistanceSame-Norm-normalization/m-p/906757#M13583</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm using the image proximity measure iipiSqrDistanceSame_Norm and I don't get how the normalization is done. &lt;BR /&gt;I have done the calculations on the sample of the manual by myself and I don't get the same results.han&lt;BR /&gt;&lt;BR /&gt;Could anybody help me?&lt;BR /&gt;Thanks in advanced,&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;pepa&lt;BR /&gt;</description>
      <pubDate>Sun, 10 May 2009 20:50:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/iipiSqrDistanceSame-Norm-normalization/m-p/906757#M13583</guid>
      <dc:creator>nose00</dc:creator>
      <dc:date>2009-05-10T20:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: iipiSqrDistanceSame_Norm normalization</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/iipiSqrDistanceSame-Norm-normalization/m-p/906758#M13584</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;could you please share piece of code demosntrating how do you use IPP function?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir</description>
      <pubDate>Wed, 13 May 2009 06:55:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/iipiSqrDistanceSame-Norm-normalization/m-p/906758#M13584</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2009-05-13T06:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: iipiSqrDistanceSame_Norm normalization</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/iipiSqrDistanceSame-Norm-normalization/m-p/906759#M13585</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Hello Vladimir,&lt;BR /&gt;here the piece of code. I#m using C#.&lt;BR /&gt;&lt;BR /&gt;float[] source = new float[] {2, 2, 2, 2, 2,&lt;BR /&gt; 2, 1, 1, 2, 2,&lt;BR /&gt; 2, 1, 1, 2, 2,&lt;BR /&gt; 2, 1, 1, 2, 2 };&lt;BR /&gt;&lt;BR /&gt;float[] template = new float[] {1, 1, 2,&lt;BR /&gt; 1, 1, 2,&lt;BR /&gt; 1, 1, 2};&lt;BR /&gt;&lt;BR /&gt;float[] dest = new float[5*4];&lt;BR /&gt; &lt;BR /&gt;IppiSize sourceRoi = new IppiSize(5, 4);&lt;BR /&gt;IppiSize templateRoi = new IppiSize(3, 3);&lt;BR /&gt;int sourceStep = 5*sizeof(float);&lt;BR /&gt;int templateStep = 3*sizeof(float);&lt;BR /&gt;int destStep = 5*sizeof(float);&lt;BR /&gt;&lt;BR /&gt;fixed(float* pSource = source, pTemplate= tuple, pDest = dest) {&lt;BR /&gt; ippResult = ip.ippiSqrDistanceSame_Norm_32f_C1R(pSource, sourceStep, sourceRoi, pTemplate, &lt;BR /&gt; tupleStep, templateRoi, pDest, destStep);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;0,72 - 0,56 - 0,44 - 0,46 - 1,06&lt;BR /&gt;0,44 - 0,29 - 0,10 - 0,17 - 0,87&lt;BR /&gt;0,55 - 0,33 - 0,00 - 0,14 - 0,87&lt;BR /&gt;0,89 - 0,68 - 0,41 - 0,44 - 1,06&lt;BR /&gt;&lt;BR /&gt;At row 2, column 2 I get the expected 0.00. But for example row 2, column 3,&lt;BR /&gt;Formula:&lt;BR /&gt;result(2,3) = [tmpl'(0,0)- src'(0.5, 1.5)]^2 + [tmpl'(0,1)- src'(0.5, 2.5)]^2 + [tmpl'(0,2)- src'(0.5, 3.5)]^2 + &lt;BR /&gt; [tmpl'(1,0)- src'(0.5, 1.5)]^2 + [tmpl'(1,1)- src'(0.5, 2.5)]^2 + [tmpl'(1,2)- src'(0.5, 3.5)]^2 + &lt;BR /&gt; [tmpl'(2,0)- src'(0.5, 1.5)]^2 + [tmpl'(2,1)- src'(0.5, 2.5)]^2 + [tmpl'(2,2)- src'(0.5, 3.5)]^2 &lt;BR /&gt;&lt;BR /&gt;tmpl' and src' are the normalized template and source.&lt;BR /&gt;I guess, that the point(0.5, 1.5) is rounded to (1,2).&lt;BR /&gt;&lt;BR /&gt;For the row 2, column 3 I don't get 0.14, so I guess I'm not normalizing well. (src'(r,c)= src(r,c)/length&lt;BR /&gt;I tried different lengths : &lt;BR /&gt;- sqrt(elements^2 of the 3x3 part of the source imgage)&lt;BR /&gt;- sqrt(elements^2 of the whole image ??)&lt;BR /&gt;and other just to test, but I don't get 0,14&lt;BR /&gt;&lt;BR /&gt;Thanks a lot,&lt;BR /&gt;regards pepa&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 May 2009 08:15:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/iipiSqrDistanceSame-Norm-normalization/m-p/906759#M13585</guid>
      <dc:creator>nose00</dc:creator>
      <dc:date>2009-05-14T08:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: iipiSqrDistanceSame_Norm normalization</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/iipiSqrDistanceSame-Norm-normalization/m-p/906760#M13586</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;Hi,&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;SSD values in function with "Same_" suffics are normalized by auto-correlations of source and template images in pixelneighborhood. I manually checked (2,3) pixel and got result(2,3) = 3/sqrt(18*27)=0.14.&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Please read "Image Proximity Measures" section in ippiman document for more details.&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Igor.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 May 2009 13:03:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/iipiSqrDistanceSame-Norm-normalization/m-p/906760#M13586</guid>
      <dc:creator>Igor_B_Intel1</dc:creator>
      <dc:date>2009-05-15T13:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: iipiSqrDistanceSame_Norm normalization</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/iipiSqrDistanceSame-Norm-normalization/m-p/906761#M13587</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/21073"&gt;Igor Belyakov (Intel)&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;
&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;Hi,&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;SSD values in function with "Same_" suffics are normalized by auto-correlations of source and template images in pixelneighborhood. I manually checked (2,3) pixel and got result(2,3) = 3/sqrt(18*27)=0.14.&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Please read "Image Proximity Measures" section in ippiman document for more details.&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Igor.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi Igor,&lt;BR /&gt;thanks a lot for the answer.&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Pepa&lt;BR /&gt;</description>
      <pubDate>Fri, 15 May 2009 13:18:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/iipiSqrDistanceSame-Norm-normalization/m-p/906761#M13587</guid>
      <dc:creator>nose00</dc:creator>
      <dc:date>2009-05-15T13:18:08Z</dc:date>
    </item>
  </channel>
</rss>

