
正規化された 2 次元相互相関について
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
HK
am 2 Mär. 2022
Beantwortet: Hernia Baby
am 2 Mär. 2022
onion = im2gray(imread('onion.png'));
peppers = im2gray(imread('peppers.png'));
montage({peppers,onion})
c = normxcorr2(onion,peppers);
上記プログラムはnormxcorr2の説明ページにあるプログラムです。
画像サイズが
onion:135*198画素
peppers:384*512画素
の画像の場合cの値が518*709画素となるのですが、
cの端の値がどのように計算されているのかわからないです。
中心部であればonionの画像範囲全てがpeppersの中の範囲に収まるが端の部分ではpeppersの範囲外の部分がどのように計算されて処理結果となっているのかわからないです。
足りない部分にはどのような処理が行われているのかなどが分かると助かります。
0 Kommentare
Akzeptierte Antwort
Hernia Baby
am 2 Mär. 2022
関数の中身を知りたい場合は、
edit normxcorr2 と打つか 関数を右クリックして「"normxcorr2"を開く」を選びます。
normxcorr2.m が開くはずです。

今回は127 ~ 129行目に書かれていますね。
試しに書いてみましょう。
[135 198] + [384 512] - 1
計算内容が結果とリンクしていることがわかりました
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu イメージの画質 finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!