Border is drawn around the ellipse, how to fill now?

조회 수: 12 (최근 30일)
med-sweng
med-sweng 2014년 10월 6일
답변: Chad Greene 2014년 10월 7일
In this tutorial, an ellipse will be outlined. As you can see, a red border will be drawn around. Form such result, how can we fill such surrounded border with white, and the rest of the image as black?
Thanks.

답변 (1개)

Chad Greene
Chad Greene 2014년 10월 7일
You could fill the ellipse with a patch or you could use inpolygon to set all pixels inside the polygon to one color, and set all other pixels another color.

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by