- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how can I detect the traffic circle / ring on the image?
please guide the API to be used.
ring:
0 0 0 0 0 0
0 1 1 1 0 0
1 1 0 1 1 0
0 1 0 1 0 0
0 0 1 0 0 0
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Xie Huan,
As Vladimir said, OpenCV has got functions which finds circles in a grayscale image using a Hough transform.
If you want to see Hough transform functions available in IPP click here, but this can be used only for detecton of the straight lines that are defined by the parametric equation
r = x*cos() + y*sin(), where r and are the length and angle from the origin of a normal to the line respectively
Regards,
Naveen Gv
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi xiehuan,
i am not sure about traffic circle / ring on the image means, Sorry. Could you explain little more?
Thanks,
Naveen Gv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply.
I didn't describeit clearly, sorry, we want to recognize the black area on the below image:
and we want to exclude the black area that is not ring:
I hope the image can be displayedproperly.
Regards,
Xie Huan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Imaging there is an image with white background (pixel value = 1), and there is a blackcircle (pixel value = 0)on the center of the image; another circle with white color (pixel value = 1) has the same center as the previous one, but the radius is less than the previous one, covers the black circle.
we want to recognize the black area, which is a part of the black circle but not all.
all the circles that contains a hole can be consider as a ring / traffic circle, andexclude thesolid circle.
Regards,
Xie Huan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it seems you are looking for circle detection algorithm. According many sources the circular Hough transform might be used to detect circles of known radius. In IPP we do have Hough transform implementation to detect lines but do not have one for circles. You may take a look at OpenCV library which provides circular hough transform implementation.
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Xie Huan,
As Vladimir said, OpenCV has got functions which finds circles in a grayscale image using a Hough transform.
If you want to see Hough transform functions available in IPP click here, but this can be used only for detecton of the straight lines that are defined by the parametric equation
r = x*cos() + y*sin(), where r and are the length and angle from the origin of a normal to the line respectively
Regards,
Naveen Gv
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page