フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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 日間)
M.S. Khan
M.S. Khan 2019 年 7 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
M.S. Khan
M.S. Khan 2019 年 7 月 18 日
please need help how to fill the interior of the object.
regards

回答 (1 件)

KSSV
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