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

17 ビュー (過去 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 Center および File ExchangePolygons についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by