Correlation coefficient for image pixels

I want to calculate the correlation coefficient for my image pixel(binary)and after that for my encrypted image. I know corr2 is for calculating the correlation coefficient for two images.
But is there a function for calculating the correlation coefficient for one image in matlab?Actually I want a number not a matrix

답변 (2개)

Nitin
Nitin 2013년 6월 22일

0 개 추천

Hello, I am pretty sure corr2 returns a value , http://www.mathworks.com.au/help/images/ref/corr2.html
You need to compare with something to get a correlation coefficient, either with other images or other parts of your image

댓글 수: 4

sa za
sa za 2013년 6월 22일
편집: sa za 2013년 6월 22일
Hi.corr2 returns a value but between two image but for one image what should i do?i know i should choose random pixels from my image and calculating the correlation coefficient between them but how? may be i should split the image into two parts and used for corr2 parameters?
Image Analyst
Image Analyst 2013년 6월 23일
If it's encrypted, wouldn't the correlation be about 0? If not, it's not encrypted very well.
sa za
sa za 2013년 6월 25일
hi.yes.correlation should be about 0.but how can I get this correlation ?
Image Analyst
Image Analyst 2013년 6월 25일
I thought you were using corr2(). What's wrong with that?

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

sa za
sa za 2013년 6월 27일

0 개 추천

I can not use corr2 because corr2 working for two image but I want to get correlation coefficient for one image could I divide my image in 2 parts and then use corr2?

질문:

2013년 6월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by