MATLAB: How to calculate the normalized cross correlation between original Watermark Image and Extracted Watermark Image

Image Processing Toolboximage watermarking

I know this is the formula to be calculated by have difficulties to implement it in Matlab :
Please open the screenshot for the equation .
any help is highly appreciated . thanks in advance

Best Answer

There is an Image Processing Toolbox function for it. It's called normxcorr2() and I'm attaching a demo for it.
Related Question