<?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 Functions with Sfs (saturation &amp; fixed scaling) in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Functions-with-Sfs-saturation-fixed-scaling/m-p/794737#M2673</link>
    <description>Hi cks2k2,&lt;BR /&gt;&lt;BR /&gt;I guess I can understand your question.Itseems the limitation of integerdatatypecomputationare everywhere, thus as developer,we have to take them intoconsidering in details.&lt;BR /&gt;&lt;BR /&gt;Itis valuable totrythem, but please note some facts before do that :&lt;BR /&gt;1)ippiBilateral_8u_C1R()and ippiSqr_8u_C1RSfs()(ipps10Log10_32s_Sfs) are independent functions. &lt;BR /&gt;So if you feed ippiBilateral with 11, then it willdealedas 11. the function doesn't retain the data as 1.375. And you mustdo the retainyourself after get the output of ippiBilateral. &lt;BR /&gt;&lt;BR /&gt;2)ippiBilateral_8u_C1R()work internally in floating points precisionand thensaturated to the destination data type range before output.&lt;BR /&gt;&lt;BR /&gt;For example, if yourinput image's intensity is 10^1.41, and log(intensity) is 1.41 and output is 1&lt;BR /&gt;or if use scalefactor -3, the outputis 11.&lt;BR /&gt;&lt;BR /&gt;Thenuse 11 as input ofippiBilateral, you will get one integer output image. As your input is scaling result of last operatin, you musthandlethe output's scaling according the feature ofbilaterial. &lt;BR /&gt;Or use 1 as input of ofippiBilateral, you will get another integer output image. &lt;BR /&gt;Comparing the two output image and choose the one suitable. &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ying &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Jun 2012 03:24:00 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2012-06-28T03:24:00Z</dc:date>
    <item>
      <title>Functions with Sfs (saturation &amp; fixed scaling)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Functions-with-Sfs-saturation-fixed-scaling/m-p/794736#M2672</link>
      <description>Question on Sfs functions for example I have an Ipp8u data with value = 2.&lt;DIV&gt;And I call the function ippiSqr_8u_C1RSfs() on this number with scale factor = -3.&lt;/DIV&gt;&lt;DIV&gt;My result would be 11.&lt;/DIV&gt;&lt;DIV&gt;(Example copied from IPP manual).&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If I pass this result to another function that only accepts 8u i.e. ippiBilateral_8u_C1R(), will ippiBilateral() use the value 11 or will it use 11*pow(2, -3) = 1.375 ?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Basically I want to write a tone mapping program based on Durand-Dorsey operator, where they perform a bilateral filter on the log(intensity) of the input image. Given that ippiBilateral() only works on 8u, and log will return floating point results, I wonder if with Sfs I can perserve the floating point in 8u form and pass it to ippiBilateral() and have it work as if it was dealing with floating point?&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Jun 2012 11:10:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Functions-with-Sfs-saturation-fixed-scaling/m-p/794736#M2672</guid>
      <dc:creator>cks2k2</dc:creator>
      <dc:date>2012-06-27T11:10:20Z</dc:date>
    </item>
    <item>
      <title>Functions with Sfs (saturation &amp; fixed scaling)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Functions-with-Sfs-saturation-fixed-scaling/m-p/794737#M2673</link>
      <description>Hi cks2k2,&lt;BR /&gt;&lt;BR /&gt;I guess I can understand your question.Itseems the limitation of integerdatatypecomputationare everywhere, thus as developer,we have to take them intoconsidering in details.&lt;BR /&gt;&lt;BR /&gt;Itis valuable totrythem, but please note some facts before do that :&lt;BR /&gt;1)ippiBilateral_8u_C1R()and ippiSqr_8u_C1RSfs()(ipps10Log10_32s_Sfs) are independent functions. &lt;BR /&gt;So if you feed ippiBilateral with 11, then it willdealedas 11. the function doesn't retain the data as 1.375. And you mustdo the retainyourself after get the output of ippiBilateral. &lt;BR /&gt;&lt;BR /&gt;2)ippiBilateral_8u_C1R()work internally in floating points precisionand thensaturated to the destination data type range before output.&lt;BR /&gt;&lt;BR /&gt;For example, if yourinput image's intensity is 10^1.41, and log(intensity) is 1.41 and output is 1&lt;BR /&gt;or if use scalefactor -3, the outputis 11.&lt;BR /&gt;&lt;BR /&gt;Thenuse 11 as input ofippiBilateral, you will get one integer output image. As your input is scaling result of last operatin, you musthandlethe output's scaling according the feature ofbilaterial. &lt;BR /&gt;Or use 1 as input of ofippiBilateral, you will get another integer output image. &lt;BR /&gt;Comparing the two output image and choose the one suitable. &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ying &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jun 2012 03:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Functions-with-Sfs-saturation-fixed-scaling/m-p/794737#M2673</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2012-06-28T03:24:00Z</dc:date>
    </item>
  </channel>
</rss>

