How to find correaltion coeffient for two image regions?

I have 2 5-by-5 image regions. I want to find out correlation coefficient between them. Formula is- Denote the pixel intensity at location x as I(x),and W(x) as the 5-by-5 neighboring area centered at x, the correlation coefficient between the two pixel locations is computed as:

Asked:

on 27 Feb 2014

Answered:

on 27 Feb 2014

Community Treasure Hunt

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

Start Hunting!