Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How to label the interior of region as 2 where as boundary is already labelled as 4 for an object using Matlab coding

1 visualizzazione (ultimi 30 giorni)
I am using grids with width 10. I want the interior to be filled as 2. As shown in attached figure. Than I want to count all filled cells of 4 and 2. Regards for cooperation.

Risposte (1)

KSSV
KSSV il 18 Lug 2019
AS you have coordinates for the boundary (i.e 4), use inpolygon and get the coordinates lying inside it. Label them or fill the value you want.

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by