こんにちは。
関数で言うとdrawpolygonでできます。処理の流れとしては、
- h = drawpolygon で、ROIを取得
- BW = createMask(h, img) で、マスクを作成
- img(~BW) = 0 で画像にマスクを適用
みたいな感じです。細かいところは、各関数のドキュメントをご覧ください。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!