Creating shapes in binary images

6 ビュー (過去 30 日間)
Kavorka
Kavorka 2016 年 3 月 24 日
回答済み: prasanth s 2019 年 8 月 16 日
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

回答 (1 件)

prasanth s
prasanth s 2019 年 8 月 16 日
you can insert a shape in a image using the function 'insertShape'.
e.g.
RGB = insertShape(I,shape,position);

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by