<?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 ippiLabelMarker Issues in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiLabelMarker-Issues/m-p/1010206#M23318</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to do some image segmentation, and I am still having some trouble with ippiLabelMarker's implementation even after reading through the documentation and this post:&amp;nbsp;&lt;A href="https://software.intel.com/en-us/forums/topic/297054" style="font-size: 1em; line-height: 1.5;"&gt;https://software.intel.com/en-us/forums/topic/297054&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Here is a snippet of my code:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;//get size and allocate memory for buffer
	int LabelBufferSize;
	ippiLabelMarkersGetBufferSize_8u_C1R(sizeImg, &amp;amp;LabelBufferSize);
	Ipp8u* LabelBuffer = ippsMalloc_8u(LabelBufferSize);

//Compute Labels
	int minLabel = 0;
	int maxLabel = 255;
	int numLabels;
	ippiLabelMarkers_16u_C1IR(BinUnsigned, src16Step, sizeImg, minLabel, maxLabel, ippiNormL1, &amp;amp;numLabels, LabelBuffer);
	std::cout &amp;lt;&amp;lt; numLabels &amp;lt;&amp;lt; std::endl;&lt;/PRE&gt;

&lt;P&gt;My first argument of the LabelMarkers function is "BinUnsigned", an Ippi16u* binarized image with pixel values of 0 and 254.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Based on the forum post linked above and all the documentation I've read, my understanding is that the LabelMarker image should apply a different label to each continuous section of non-zero values. Is this correct?&lt;/P&gt;

&lt;P&gt;I'm seeing the same label applied to sections that are clearly separated by zeros, seemingly just because they have the same value (which will always be 254).&lt;/P&gt;

&lt;P&gt;Also, numLabels in the above instance returns 3, even though I verified that there are no other label values in the LabelMarker other than 0 and 254. Can anyone explain to me what's going on there?&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated, thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 02 Sep 2015 16:32:29 GMT</pubDate>
    <dc:creator>Robert_G_2</dc:creator>
    <dc:date>2015-09-02T16:32:29Z</dc:date>
    <item>
      <title>ippiLabelMarker Issues</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiLabelMarker-Issues/m-p/1010206#M23318</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am trying to do some image segmentation, and I am still having some trouble with ippiLabelMarker's implementation even after reading through the documentation and this post:&amp;nbsp;&lt;A href="https://software.intel.com/en-us/forums/topic/297054" style="font-size: 1em; line-height: 1.5;"&gt;https://software.intel.com/en-us/forums/topic/297054&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Here is a snippet of my code:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;//get size and allocate memory for buffer
	int LabelBufferSize;
	ippiLabelMarkersGetBufferSize_8u_C1R(sizeImg, &amp;amp;LabelBufferSize);
	Ipp8u* LabelBuffer = ippsMalloc_8u(LabelBufferSize);

//Compute Labels
	int minLabel = 0;
	int maxLabel = 255;
	int numLabels;
	ippiLabelMarkers_16u_C1IR(BinUnsigned, src16Step, sizeImg, minLabel, maxLabel, ippiNormL1, &amp;amp;numLabels, LabelBuffer);
	std::cout &amp;lt;&amp;lt; numLabels &amp;lt;&amp;lt; std::endl;&lt;/PRE&gt;

&lt;P&gt;My first argument of the LabelMarkers function is "BinUnsigned", an Ippi16u* binarized image with pixel values of 0 and 254.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Based on the forum post linked above and all the documentation I've read, my understanding is that the LabelMarker image should apply a different label to each continuous section of non-zero values. Is this correct?&lt;/P&gt;

&lt;P&gt;I'm seeing the same label applied to sections that are clearly separated by zeros, seemingly just because they have the same value (which will always be 254).&lt;/P&gt;

&lt;P&gt;Also, numLabels in the above instance returns 3, even though I verified that there are no other label values in the LabelMarker other than 0 and 254. Can anyone explain to me what's going on there?&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2015 16:32:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiLabelMarker-Issues/m-p/1010206#M23318</guid>
      <dc:creator>Robert_G_2</dc:creator>
      <dc:date>2015-09-02T16:32:29Z</dc:date>
    </item>
    <item>
      <title>Hi Robert, </title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiLabelMarker-Issues/m-p/1010207#M23319</link>
      <description>&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Please check the below two suggestions and let us know the results. Thanks.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;First, please use a buffer size function that matches the type of your ippiLabelMarker. &amp;nbsp;ippiLabelMarkersGetBufferSize_8u_C1R -&amp;gt; &lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;ippiLabelMarkersGetBufferSize_&lt;/SPAN&gt;16u_C1R&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Second,&amp;nbsp;&lt;SPAN style="color: rgb(102, 102, 102); font-family: 'Courier New', Courier, monospace; font-size: 13px; font-style: italic; line-height: 19.5px;"&gt;minLabel &lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;Minimal value of the marker label (0&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="parmname" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-style: italic; color: rgb(102, 102, 102); font-size: 13px; line-height: 19.5px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="parmname" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-style: italic; color: rgb(102, 102, 102); font-size: 13px; line-height: 19.5px;"&gt;minLabel&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="eqsymbol" style="box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;≤&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="parmname" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-style: italic; color: rgb(102, 102, 102); font-size: 13px; line-height: 19.5px;"&gt;maxLabel&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: 'Courier New', Courier, monospace; font-size: 13px; font-style: italic; line-height: 19.5px;"&gt;maxLabel&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;Maximal value of the marker label (&lt;/SPAN&gt;&lt;SPAN class="parmname" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-style: italic; color: rgb(102, 102, 102); font-size: 13px; line-height: 19.5px;"&gt;minLabel&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="eqsymbol" style="box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;≤&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="parmname" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-style: italic; color: rgb(102, 102, 102); font-size: 13px; line-height: 19.5px;"&gt;maxLabel&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&amp;lt; 255 for 8-bit markers, and&lt;/SPAN&gt;&lt;SPAN class="parmname" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-style: italic; color: rgb(102, 102, 102); font-size: 13px; line-height: 19.5px;"&gt;minLabel&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="eqsymbol" style="box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;≤&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="parmname" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-style: italic; color: rgb(102, 102, 102); font-size: 13px; line-height: 19.5px;"&gt;maxLabel&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&amp;lt; 65535 for 16-bit markers, and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="parmname" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-style: italic; color: rgb(102, 102, 102); font-size: 13px; line-height: 19.5px;"&gt;minLabel&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="eqsymbol" style="box-sizing: border-box; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;≤&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="parmname" style="box-sizing: border-box; font-family: 'Courier New', Courier, monospace; font-style: italic; color: rgb(102, 102, 102); font-size: 13px; line-height: 19.5px;"&gt;maxLabel&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;&amp;lt; (2&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; font-size: 9.75px; line-height: 0; position: relative; vertical-align: baseline; top: -0.5em; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif;"&gt;31&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;-1) for 32-bit markers).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;"&gt;&amp;nbsp;- Jon&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 08:12:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiLabelMarker-Issues/m-p/1010207#M23319</guid>
      <dc:creator>Jonghak_K_Intel</dc:creator>
      <dc:date>2015-09-15T08:12:25Z</dc:date>
    </item>
  </channel>
</rss>

