<?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 Hi Ladislav, in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121558#M25594</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Ladislav,&lt;/P&gt;

&lt;P&gt;I already submitted your feature request, we will consider it. Right now, the simplest solution is to call Threshold_LTVal and Threshold_GTVal separately to realize the functionality.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 02:53:16 GMT</pubDate>
    <dc:creator>Zhen_Z_Intel</dc:creator>
    <dc:date>2017-03-24T02:53:16Z</dc:date>
    <item>
      <title>Thresholding to min(datatype) and max(datatype)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121554#M25590</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
	it is often needed to threshold image from gray colors to black/white. There are many Threshold functions, but I can not find any which is able to do it.&lt;BR /&gt;
	For example we have 1 channel image with Ipp8u pixel size. I want do:&lt;BR /&gt;
	&amp;nbsp; if [pixel] &amp;lt;= threshold then set it to lowValue else set it to hiValue&lt;/P&gt;

&lt;P&gt;There is: Threshold_LTValGTVal which allows me specify two thresholds and two values, but conditions are LT and GT so when I use:&lt;BR /&gt;
	&lt;SPAN class="kwd"&gt;&amp;nbsp; ippiThreshold_LTValGTVal_&lt;/SPAN&gt;&lt;SPAN class="keyword"&gt;8u_C1IR(&lt;/SPAN&gt;&lt;SPAN class="var"&gt;pSrcDst&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;,&lt;/SPAN&gt; &lt;SPAN class="var"&gt;srcDstStep&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;,&lt;/SPAN&gt; &lt;SPAN class="var"&gt;roiSize&lt;/SPAN&gt;&lt;SPAN class="sep"&gt;,&lt;/SPAN&gt; 127&lt;SPAN class="sep"&gt;,&lt;/SPAN&gt; 0&lt;SPAN class="sep"&gt;,&lt;/SPAN&gt; 127&lt;SPAN class="sep"&gt;,&lt;/SPAN&gt; 255&lt;SPAN class="keyword"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;
	Pixels with value 127 remain unchanged, does not ?&lt;BR /&gt;
	And according to documentation I can not specify &lt;SPAN class="var"&gt;thresholdLT (128) &amp;gt; thresholdGT (127)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="var"&gt;So is there any workaround or do you plan introduce new function ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 06:40:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121554#M25590</guid>
      <dc:creator>Ladislav_K_</dc:creator>
      <dc:date>2017-03-17T06:40:23Z</dc:date>
    </item>
    <item>
      <title>Hi Ladislav,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121555#M25591</link>
      <description>&lt;P&gt;Hi Ladislav,&lt;/P&gt;

&lt;P&gt;It is real a problem as you said. I will submit to our developer team. Thanks.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 02:43:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121555#M25591</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-03-20T02:43:27Z</dc:date>
    </item>
    <item>
      <title>Hi Ladislav,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121556#M25592</link>
      <description>&lt;P&gt;Hi Ladislav,&lt;/P&gt;

&lt;P&gt;If you just intend to realize the binarization but do not care about the data type or image mode, you could refer the convert function ippiGrayToBin. However the output is 1u for binary data not 8u.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 08:52:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121556#M25592</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-03-20T08:52:28Z</dc:date>
    </item>
    <item>
      <title>Hi Fiona,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121557#M25593</link>
      <description>&lt;P&gt;Hi Fiona,&lt;/P&gt;

&lt;P&gt;thank you for your comments. I am aware of GrayToBin function, but it is not usable in my case. I need in-place thresholding of 8u image as I wrote: &amp;nbsp; if [pixel] &amp;lt;= threshold then set it to lowValue else set it to hiValue&lt;BR /&gt;
	(or simplified: if [pixel] &amp;lt;=127 then set it to 0 else set it to 255)&lt;/P&gt;

&lt;P&gt;I think that it is very common scenario used in binarization of gray scaled images, does not ?&lt;/P&gt;

&lt;P&gt;Do you think that developement team will provide any feedback ?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 10:48:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121557#M25593</guid>
      <dc:creator>Ladislav_K_</dc:creator>
      <dc:date>2017-03-20T10:48:57Z</dc:date>
    </item>
    <item>
      <title>Hi Ladislav,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121558#M25594</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Ladislav,&lt;/P&gt;

&lt;P&gt;I already submitted your feature request, we will consider it. Right now, the simplest solution is to call Threshold_LTVal and Threshold_GTVal separately to realize the functionality.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 02:53:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121558#M25594</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-03-24T02:53:16Z</dc:date>
    </item>
    <item>
      <title>Thank you Fiona,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121559#M25595</link>
      <description>&lt;P&gt;Thank you Fiona,&lt;BR /&gt;
	For now I did it as you recommended. Please let me know if you decide implement this feature request.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 06:18:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121559#M25595</guid>
      <dc:creator>Ladislav_K_</dc:creator>
      <dc:date>2017-03-24T06:18:45Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...So is there any</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121560#M25596</link>
      <description>&amp;gt;&amp;gt;...So is there any workaround or do you plan introduce new function?

You can convert an image with 8-bit dynamic range to an image of wider dynamic range and I don't think that a new function in IPP is needed.</description>
      <pubDate>Fri, 24 Mar 2017 21:03:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121560#M25596</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2017-03-24T21:03:21Z</dc:date>
    </item>
    <item>
      <title>@Sergey: but I do not need</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121561#M25597</link>
      <description>&lt;P&gt;@Sergey: but I do not need wider range. I need threshold grayscaled 8u image with 256 possible values per each pixel to 0 (black) or 255 (white). There is function: ippiThreshold_LTValGTVal_8u_C1IR, but it cannot be used as explained above.&lt;/P&gt;

&lt;P&gt;So only workaround for now is use two calls:&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ippiThreshold_LTVal_8u_C1IR(pSrcDst, srcDstStep, roiSize, AThreshold+1, 0);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ippiThreshold_GTVal_8u_C1IR(pSrcDst, srcDstStep, roiSizei, AThreshold, 255);&lt;BR /&gt;
	Which seems to me not so efficient as one call would be.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 05:16:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121561#M25597</guid>
      <dc:creator>Ladislav_K_</dc:creator>
      <dc:date>2017-03-27T05:16:56Z</dc:date>
    </item>
    <item>
      <title>Needed here as well:</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121562#M25598</link>
      <description>&lt;P&gt;Needed here as well: threshold a grey (u8) image with px = px &amp;lt; threshold ? 0 : 255; etc. Now this has to be done in two steps with IPP which is a performance drawback.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 14:36:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121562#M25598</guid>
      <dc:creator>gast128</dc:creator>
      <dc:date>2018-11-02T14:36:24Z</dc:date>
    </item>
    <item>
      <title>You can use ippiCompareC to</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121563#M25599</link>
      <description>&lt;P&gt;You can use&amp;nbsp;ippiCompareC to threshold to a black-and white mask. Note that the destination mask will be of type 8u, even if the source image has type 16u or 32f.&lt;/P&gt;&lt;P&gt;For&amp;nbsp;more complicated thresholding operations of 8u or 16u images, you can also consider using&amp;nbsp;ippiLUTPalette.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adriaan van Os&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 15:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121563#M25599</guid>
      <dc:creator>Adriaan_van_Os</dc:creator>
      <dc:date>2018-11-02T15:10:00Z</dc:date>
    </item>
    <item>
      <title>Yes ippiCompareC works as</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121564#M25600</link>
      <description>&lt;P&gt;Yes ippiCompareC works as expected. Thank you. I can use it also as in-line (Src=Dst):&lt;/P&gt;&lt;P&gt;&amp;nbsp; ippiCompareC_8u_C1R(Src, Width, AThreshold, Src, Width, roiSize, ippCmpGreaterEq);&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 09:23:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Thresholding-to-min-datatype-and-max-datatype/m-p/1121564#M25600</guid>
      <dc:creator>Ladislav_K_</dc:creator>
      <dc:date>2018-11-05T09:23:59Z</dc:date>
    </item>
  </channel>
</rss>

