Imread, imcrop, に関する問い合わせ

2 views (last 30 days)
Yoshifumi Harada
Yoshifumi Harada on 22 Jul 2019
Answered: Kenta on 23 Jul 2019
image proccessing tool box の 画像の切り抜きコマンド imcrop( I, 切り抜き)コマンドの矩形の4つの
数値のうち、4ツの数値の決めかたを教えて下さい。 解説書を見ましたが、よく分りません
  

Accepted Answer

Kenta
Kenta on 23 Jul 2019
rectangle('Position',pos) は 2 次元座標の四角形を作成します。pos を、[x y w h] という形式の 4 要素ベクトルとして、データ単位で指定します。x 要素と y 要素で位置が決まり、w 要素と h 要素でサイズが決まります。
上に加えて、x、yはそれぞれ、四角形の左下の隅の座標です。
以上の内容ととここでの「決め方」は同じでしょうか?同じであれば、上の条件を踏まえて
切り取りたい領域の左下の角の座標と横幅、縦幅を定義すれば良いと思うのですが、いかがでしょうか?

More Answers (0)

Categories

Find more on Gamma Functions 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!