Filter löschen
Filter löschen

Creating shapes in binary images

8 Ansichten (letzte 30 Tage)
Kavorka
Kavorka am 24 Mär. 2016
Beantwortet: prasanth s am 16 Aug. 2019
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

Antworten (1)

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

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by