- h = drawpolygon で、ROIを取得
- BW = createMask(h, img) で、マスクを作成
- img(~BW) = 0 で画像にマスクを適用
画像の切り取りをMATLABで行いたい
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Haruki Kimura
el 9 de Dic. de 2019
Respondida: Shunichi Kusano
el 9 de Dic. de 2019
matlabで画像を四角とかではなく任意の形に切り取ることは可能ですか?
例としては、画像の背景部分だけを切り取ったり、物の形に沿って切り取ったりです。
よろしくお願いします。
0 comentarios
Respuesta aceptada
Shunichi Kusano
el 9 de Dic. de 2019
こんにちは。
関数で言うとdrawpolygonでできます。処理の流れとしては、
みたいな感じです。細かいところは、各関数のドキュメントをご覧ください。
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre ROI ベース処理 en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!