|
-
Jan 28th, 2017, 01:43 AM
#2
Re: Count shapes in image
Use a paint-bucket fill algorithm -- there's plenty to find on the web. Scan the image for the first coloured pixel you find, do a paint fill to get all the connected pixels, add 1 to your shape count and delete those pixels. Repeat until there are no coloured pixels left. Or does this count as brute force?
BB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|