- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi I've run the example and might found a Bug.
Using IPP 7.0, VS 2010
The Problem is, when the Seed-Point Value is equal as the new Value, the ippiFloodFill wouldn't run (Area is 0). As seen in the code below.
Changing the New Value to 255 / 253 everything works fine. Area is 13 (as you can count). Is this a bug or a not dokumentet feature?
Ipp8u pImage[8*8] ={ 0, 1, 200, 3, 4, 5, 6, 7,
0, 1, 200, 3, 4, 5, 6, 7,
0, 1, 254, 3, 4, 5, 6, 7,
0, 1, 254, 3, 4, 5, 6, 7,
0, 1, 255, 180, 180, 180, 180, 180,
0, 1, 200, 3, 4, 5, 6, 7,
0, 1, 200, 3, 4, 5, 6, 7,
0, 1, 200, 3, 4, 5, 6, 7};
IppiSize roiSize = { 8, 8 };
IppiPoint seed = { 2, 2 };
Ipp8u newVal = 254;
Ipp8u minDelta = 100;
Ipp8u maxDelta = 255;
int pBufferSize;
IppiConnectedComp pRegion;pRegion.area = 0;
ippiFloodFillGetSize_Grad ( roiSize, &pBufferSize );
Ipp8u* pBuffer = ippiMalloc_8u_C1 ( 8, 8, &pBufferSize );
ippiFloodFill_Range8Con_8u_C1IR ( pImage, 8, roiSize, seed, newVal, minDelta, maxDelta, &pRegion, pBuffer );
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sergey,
Thanks for you postings. I'm using the Intel_IP7.0ia32 version.
The seed points requires the x,y coordinate (px) of the seed in the image. The function should start to fill at the seed point. You can try the code example above with your seed
IppiPoint seed = { 255, 255 };
It is out of range since the image is just 8x8 .-(
Point is, the grey value (254) of the seed (2,2) is the same as the new value (254) the function start to fill. If I change the grey value at (2,2) to e.g. 253 it fills.
If you have a look in the dokumentation at the Description, the condition at point (2,2) is fulfilled.
For me this is a strange behavoir / Bug.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI
Thanks for your support. The IPP_VERSION_BUILD is the 205.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, what I can see with the latest version 8.0 :
newVal = 254
ippCV PX (px) 8.0.0 (r40040) 8.0.0.40040
0 1 200 3 4 5 6 7
0 1 200 3 4 5 6 7
0 1 254 3 4 5 6 7
0 1 254 3 4 5 6 7
0 1 255 180 180 180 180 180
0 1 200 3 4 5 6 7
0 1 200 3 4 5 6 7
0 1 200 3 4 5 6 7
Press any key to continue . . .
newVal = 253
ippCV PX (px) 8.0.0 (r40040) 8.0.0.40040
0 1 253 3 4 5 6 7
0 1 253 3 4 5 6 7
0 1 253 3 4 5 6 7
0 1 253 3 4 5 6 7
0 1 253 253 253 253 253 253
0 1 253 3 4 5 6 7
0 1 253 3 4 5 6 7
0 1 253 3 4 5 6 7
Press any key to continue . . .
from my undestanding all is ok.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page