How to blank data within a circle

3 visualizaciones (últimos 30 días)
Leon
Leon el 9 de En. de 2012
I have some grid data (m*n matrix) of the surface ocean, extending to the land in some areas. I have the conterminous United States map as a circle. Is there a way that I can blank everything that lies inside the map circle?

Respuesta aceptada

Image Analyst
Image Analyst el 9 de En. de 2012
Not sure what you have. If you have vertex coordinates of some region then you can use poly2mask to create a binary mask of the image that is true in the region and false outside the region. Then you can say array2D(binaryMask) = 0 to zero it out.
  1 comentario
Leon
Leon el 9 de En. de 2012
Thank you very much. I will try it out.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by