- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi Folks:
My customer is going to draw some contour on an image to define some region of interest. Assuming those contours are closed, then how do I generate a mask image, say 1 within the ROI, and 0 other wise, using Intel IPP?
Thanks a lot.
Nick
Link kopiert
4 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi Nick,
I guess, there are two key problems here.
1. about the region of closed contous (or ROI). which is rectangular or irregular form.
In IPP, The ROI was defined:
Image region of interest (ROI) is a rectangular area that may be either some part of the image or the whole image.
If the contous is rectangular, then you can use ippiSet
2. "generate" a mask image..
in ippCV domain, there are some functions like ippiFloodFill, Performs flood filling of connected area,
ippi LabelMarkers
Labels markers in image with different values.
SegmentWatershed
Performs watershed image segmentation using markers.
These functions will generate "region" image based on image segmentation algorithm.
But the kind of images was generated as result. as i understand, you hope to generate a new mask image . Then it seems not better methods, may be set the array value manully based on the border condition.
Best Regards,
Ying
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Let's say we have x, y coordinates of all the vertices of a polygon. How do I generate a mask, with pixels inside the polygon being 1 and outside being 0, based on x, y values?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
>>Let's say we have x, y coordinates of all the vertices of a polygon. How do I generate a mask, with pixels inside the polygon
>>being 1 and outside being 0, based on x, y values?
Do you use OpenCV library? If Yes, please take a look at a cvFillPoly function.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi Nick,
Did you find solution for this question?
I also need the Circular Cropping Using IPP .If you Have a Solution Let Me know.
Regards,
Tushar

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite