# Pearson correlation coefficient between 2 images

조회 수: 39 (최근 30일)
Ankur Khanna 2021년 4월 16일
답변: Shashank Gupta 2021년 4월 19일
Hi, I need to implement the PCC function between 2 images of same size without using any of the inbuilt function like corr2 etc in matlab. Any help would be appreciated

댓글을 달려면 로그인하십시오.

### 답변 (1개)

Shashank Gupta 2021년 4월 19일
Hi Ankur,
Simplest way to understand/execute the PCC is to check up the source code of the inbuild function "corrcoef" or if you are struggling with the steps on how to implement it. May be the following things helps you out.
• In order to find PCC between 2 images, you first need to flatten the images, convert them into either row vector or column vector.
• The mathematical expression for PCC can be found out here.
• Looking at the expression, you need to find couple of things for each flatten images, which are mean and norm. So simply use the inbuilt MATLAB function for the same.
• Then simply take the dot product between them
The vector expression will look something like :-
I hope this helps.
Cheers.

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

### Community Treasure Hunt

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

Start Hunting!

Translated by