画像範囲指定について
16 views (last 30 days)
Show older comments
画像の全体をAとした場合、
縦幅のa〜cを指定したい時は A(a:c,:)
これに加えて
横幅の左半分を指定したい時は A(a:c,0:'all'/2)
横幅の右半分を指定したい時は A(a:c,'all'/2:'all')
と表現するのは誤りでしょうか?
a、c以外に新たな変数を使わずに表現したいです。 よろしくお願いします。
0 Comments
Accepted Answer
Shunichi Kusano
on 15 Jan 2021
こんにちは。
width(A)でAの横幅を取得できますので、それを'all'の代わりに使うというのはいかがでしょうか。
3 Comments
More Answers (0)
See Also
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!