フィルターのクリア

How to crop a matrix based on its image?

1 回表示 (過去 30 日間)
Shang Gao
Shang Gao 2017 年 8 月 28 日
回答済み: Image Analyst 2017 年 8 月 28 日
I have a large matrix(hundreds x hundreds) that can be shown in the image below. What I want is to cut the matrix by the line in the second picture. I don't care if I have to do it by drawing or by some algorithm(I don't think there will be an algorithm that can cut exactly as desired, especially when the map is very uneven). I want to get the two matrix that corresponds to the two parts in the picture. The matrix can be of the same size, with the remaining part padded with zeros. Can anyone help me with this?

採用された回答

Image Analyst
Image Analyst 2017 年 8 月 28 日
See my freehand drawing demos, attached.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by