- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ROI.height = blobs.rect.height;
ROI.width = blobs.rect.width;
ROIoffset = (
int) blobs.rect.y * width + (int) blobs.rect.x;status = ippiThreshold_LTValGTVal_8u_C1R(imgIpp+ROIoffset, width, binIpp+ROIoffset, width, ROI, threshold, 0, threshold, 255);
_________________________________
However, when I do the same thing using FloodFill...........
________________________________
int BufSize;status = ippiFloodFillGetSize(ROI, &BufSize);
IppiPoint seed = {col,row}; // values inside the Rect ROI
IppiConnectedComp pRegion;
Ipp8u* pBuffer =
new Ipp8u[BufSize];status = ippiFloodFill_8Con_8u_C1IR(binIpp+ROIoffset, width, ROI, seed, grayFill, &pRegion, (void*)pBuffer);
___________________________________
I get error status of-11 --"Argument is out of range or point is outside the image"char*
In order for me to get this to work, I have to set ROIoffset = 0 and ROI = {width,height} of the whole image. I know the FloodFill uses a seed -- which is the initial point. But why do I have to use the whole image and not just the ROI? Or am I doing something wrong here?
THANKS
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
![](/skins/images/45C6C2D737ED71F4C51F0145C8CB1E9C/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page