inserting a circle on a binary image
显示 更早的评论
i have a binary image and i want to do a loop for which if the pixel is 1 i want to insert a mark on it and otherwise do nothing. can someone kindly guide me?
2 个评论
Walter Roberson
2018-3-11
What is a "mark" for your purpose?
Is the required output something on the display, or is it a new matrix with the marks included?
How does this relate to the question about inserting a circle?
Nouf Harbi
2018-3-11
回答(1 个)
Walter Roberson
2018-3-11
0 个投票
regionprops() to get the centroids . You can pass the centroids to viscircles() to have a circle be drawn at those locations.
类别
在 帮助中心 和 File Exchange 中查找有关 Image Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!