- h = drawpolygon で、ROIを取得
- BW = createMask(h, img) で、マスクを作成
- img(~BW) = 0 で画像にマスクを適用
画像の切り取りをMATLABで行いたい
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Haruki Kimura
am 9 Dez. 2019
Beantwortet: Shunichi Kusano
am 9 Dez. 2019
matlabで画像を四角とかではなく任意の形に切り取ることは可能ですか?
例としては、画像の背景部分だけを切り取ったり、物の形に沿って切り取ったりです。
よろしくお願いします。
0 Kommentare
Akzeptierte Antwort
Shunichi Kusano
am 9 Dez. 2019
こんにちは。
関数で言うとdrawpolygonでできます。処理の流れとしては、
みたいな感じです。細かいところは、各関数のドキュメントをご覧ください。
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu ROI ベース処理 finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!