이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
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.

답변 (1개)

KSSV 2019년 7월 18일
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.



Community Treasure Hunt

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

Start Hunting!

Translated by