Creating shapes in binary images
6 次查看(过去 30 天)
显示 更早的评论
Does anyone have suggestions on how to say, create a circle and move it around in a rectangular image, where the circle is 1's and the background is 0s. Or to change the size of the circle, or make a triangle, etc.
I figure you use poly2mask and some graphics tools but I'm not exactly sure how
0 个评论
回答(1 个)
prasanth s
2019-8-16
you can insert a shape in a image using the function 'insertShape'.
e.g.
RGB = insertShape(I,shape,position);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!