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 CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by