Reputation: 878
Working on an android app, I have a bitmap obtained by applying edge detection on some image. Black background bitmap with white lines as edges.
I need to identify the first closed boundary moving outward from the centre and check if it is a triangle.
How do I do that? Even a methodology if not code sample would be of much help.
Upvotes: 0
Views: 779
Reputation: 16082
This is modified Hough transform, a little optimized for this problem.
Assuming that you applied edge detection and edge is white pixel.
It's only idea, I'll hope that help.
Upvotes: 2