<?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 Segmentation using labels in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Segmentation-using-labels/m-p/805752#M3567</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I wanted to do a function that segment a grayscale image, but it seems that the number of resulting labels is always 1 for my function. I think the problem comes from the fact that I have only a few '0' in my grayscale source image. Does it means that I need to preprocess my picture before segmenting with IPP? How have I done an error?&lt;BR /&gt;&lt;BR /&gt;Here is my code:&lt;BR /&gt;&lt;BR /&gt;IplImage* Segmentation(IplImage* pcv_GrayImg)&lt;BR /&gt;{&lt;BR /&gt; CvSize cv_Size;&lt;BR /&gt; IppiSize RoiSize;&lt;BR /&gt; int bufferSize, numLabels;&lt;BR /&gt; int minLabel = 1;&lt;BR /&gt; int maxLabel = 254;&lt;BR /&gt;&lt;BR /&gt; cv_Size.height = pcv_GrayImg-&amp;gt;height;&lt;BR /&gt; cv_Size.width = pcv_GrayImg-&amp;gt;width;&lt;BR /&gt; IplImage* pcv_SegImg = cvCreateImage( cv_Size, 8, 1 );&lt;BR /&gt;&lt;BR /&gt; RoiSize.width = pcv_GrayImg-&amp;gt;width;&lt;BR /&gt; RoiSize.height = pcv_GrayImg-&amp;gt;height;&lt;BR /&gt; ippiLabelMarkersGetBufferSize_8u_C1R(RoiSize, &amp;amp;bufferSize);&lt;BR /&gt;&lt;BR /&gt; Ipp8u* buffer = ippsMalloc_8u(bufferSize);&lt;BR /&gt; ippiLabelMarkers_8u_C1IR((Ipp8u*) pcv_GrayImg-&amp;gt;imageData, pcv_GrayImg-&amp;gt;widthStep, RoiSize, minLabel, maxLabel, ippiNormInf, &amp;amp;numLabels, buffer);&lt;BR /&gt; printf("Numlabels: %d\\n",numLabels);&lt;BR /&gt;&lt;BR /&gt; ...&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!</description>
    <pubDate>Fri, 15 Oct 2010 16:30:47 GMT</pubDate>
    <dc:creator>bibi88</dc:creator>
    <dc:date>2010-10-15T16:30:47Z</dc:date>
    <item>
      <title>Segmentation using labels</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Segmentation-using-labels/m-p/805752#M3567</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I wanted to do a function that segment a grayscale image, but it seems that the number of resulting labels is always 1 for my function. I think the problem comes from the fact that I have only a few '0' in my grayscale source image. Does it means that I need to preprocess my picture before segmenting with IPP? How have I done an error?&lt;BR /&gt;&lt;BR /&gt;Here is my code:&lt;BR /&gt;&lt;BR /&gt;IplImage* Segmentation(IplImage* pcv_GrayImg)&lt;BR /&gt;{&lt;BR /&gt; CvSize cv_Size;&lt;BR /&gt; IppiSize RoiSize;&lt;BR /&gt; int bufferSize, numLabels;&lt;BR /&gt; int minLabel = 1;&lt;BR /&gt; int maxLabel = 254;&lt;BR /&gt;&lt;BR /&gt; cv_Size.height = pcv_GrayImg-&amp;gt;height;&lt;BR /&gt; cv_Size.width = pcv_GrayImg-&amp;gt;width;&lt;BR /&gt; IplImage* pcv_SegImg = cvCreateImage( cv_Size, 8, 1 );&lt;BR /&gt;&lt;BR /&gt; RoiSize.width = pcv_GrayImg-&amp;gt;width;&lt;BR /&gt; RoiSize.height = pcv_GrayImg-&amp;gt;height;&lt;BR /&gt; ippiLabelMarkersGetBufferSize_8u_C1R(RoiSize, &amp;amp;bufferSize);&lt;BR /&gt;&lt;BR /&gt; Ipp8u* buffer = ippsMalloc_8u(bufferSize);&lt;BR /&gt; ippiLabelMarkers_8u_C1IR((Ipp8u*) pcv_GrayImg-&amp;gt;imageData, pcv_GrayImg-&amp;gt;widthStep, RoiSize, minLabel, maxLabel, ippiNormInf, &amp;amp;numLabels, buffer);&lt;BR /&gt; printf("Numlabels: %d\\n",numLabels);&lt;BR /&gt;&lt;BR /&gt; ...&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!</description>
      <pubDate>Fri, 15 Oct 2010 16:30:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Segmentation-using-labels/m-p/805752#M3567</guid>
      <dc:creator>bibi88</dc:creator>
      <dc:date>2010-10-15T16:30:47Z</dc:date>
    </item>
    <item>
      <title>Segmentation using labels</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Segmentation-using-labels/m-p/805753#M3568</link>
      <description>Please take a look at this thread, similar problem.&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=65142"&gt;http://software.intel.com/en-us/forums/showthread.php?t=65142&lt;/A&gt;</description>
      <pubDate>Fri, 15 Oct 2010 22:26:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Segmentation-using-labels/m-p/805753#M3568</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2010-10-15T22:26:03Z</dc:date>
    </item>
  </channel>
</rss>

