関数の中身を知りたい場合は、
edit normxcorr2 と打つか 関数を右クリックして「"normxcorr2"を開く」を選びます。
normxcorr2.m が開くはずです。

今回は127 ~ 129行目に書かれていますね。
試しに書いてみましょう。
[135 198] + [384 512] - 1
計算内容が結果とリンクしていることがわかりました

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