Azzera filtri
Azzera filtri

イメージの相関係数’​corr2'のアルゴ​リズムについて

2 visualizzazioni (ultimi 30 giorni)
朋貴 熊田
朋貴 熊田 il 5 Ago 2021
Commentato: 朋貴 熊田 il 10 Ago 2021
イメージの相関係数の関数'corr2()'のアルゴリズムは
・imgーを一枚のイメージ
・img2ーを二枚目のイメージ
とした時に
Cov(img,img2)/√Var(img)*Var(img2)
二つの画像の共分散÷√一枚目の分散*二枚目の分散
という認識でよろしいでしょうか
ご教授お願いいたします。

Risposta accettata

Atsushi Ueno
Atsushi Ueno il 5 Ago 2021
>イメージの相関係数の関数'corr2()'のアルゴリズムは Cov(img,img2)/√Var(img)*Var(img2) という認識でよろしいでしょうか
⇒間違いありません。下記はcorr2のドキュメントから抜粋したものです。
>アルゴリズム:corr2 は以下を使用して相関係数を計算します。
r = \frac{\sum_{m}\sum_{n}(A_{mn}-\bar{A})(B_{mn}-\bar{B})}{\sqrt{(\sum_{m}\sum_{n}(A_{mn}-\bar{A})^{2})(\sum_{m}\sum_{n}(B_{mn}-\bar{B})^{2})}}
ここで、 = mean2(A) = mean2(B) です。
  2 Commenti
Yoshio
Yoshio il 10 Ago 2021
ソースコードでも確認できますね。typeコマンドを使って、
type corr2
と入力してみてください。ほぼ3行で実装しているのが分かります。
朋貴 熊田
朋貴 熊田 il 10 Ago 2021
回答ありがとうございます。

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Image Processing and Computer Vision in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!