How can I create dots on a blank image created using zeros?
2 次查看(过去 30 天)
显示 更早的评论
I want to creat a black image with white circular spots on it, where I can edit the size of the spots.
0 个评论
回答(1 个)
Walter Roberson
2020-8-23
zeros() would create the black image for you. You would then use one of the techniques for creating circles that you would set to 1 (white).
Alternately you could use insertShape from Computer Vision Toolbox.
1 个评论
Image Analyst
2020-8-23
Or you could call "hold on" and call plot() then call exportgraphics() to save the image with spot on it to disk.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!