画像中のある範囲のxy座標をM行2列のベクトルで表す
Show older comments
題の通り、画像中のある範囲のxy座標をM行2列のベクトルで表したく、ご質問させていただきました。
例といたしまして、
A = [1 0 0 0 0 ; 0 1 0 0 0 ; 0 0 1 0 0 ; 0 0 0 1 0 ; 0 0 0 0 1] という行列があったとします。
この行列のうち左上3×3の範囲をx、y座標で
[1,1 ; 1,2 ; 1,3 ; 2,1 ; 2,2 ; 2,3 ; 3,1 ; 3,2 ; 3,3]
というようにM行2列のxy座標で表したいのですがやり方が分かりません。
今はAが5×5なので手打ちで済んでますが、1000×1000のような大規模のものになると手打ちではできないので困っております。
よろしくお願い致します。
1 Comment
Keiichiro Yashima
on 7 Nov 2020
Accepted Answer
More Answers (0)
Categories
Find more on イメージ算術 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!