how can i draw small circles on several specific pixels and count all the pixels inside these circles
2 views (last 30 days)
Show older comments
I have a road map and i am trying to put circles on each road pixel (which defined the accessibility from the road) and then count all the pixels inside these circles. Can someone help me with this
thanks Mojtaba
0 Comments
Answers (1)
Image Analyst
on 22 May 2017
You can use viscircles() to draw circles in the overlay above the image. From the radius, you know how many complete pixels and partial pixels will be in a circle of that radius.
2 Comments
Image Analyst
on 23 May 2017
I see blue, red, and white pixels. No black pixels. To find centroids of blobs, use regionprops(). See my Image Segmentation Tutuorial. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862&sort=downloads_desc
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!