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

17 visualizaciones (últimos 30 días)
med-sweng
med-sweng el 6 de Oct. de 2014
Respondida: Chad Greene el 7 de Oct. de 2014
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.

Respuestas (1)

Chad Greene
Chad Greene el 7 de Oct. de 2014
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.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by