Plot nonlinear correlation between two images

Hello,
I need to plot nonlinear correaltion between two images and if the images are same we get to see a sharp peak in the centre.
The formulation is : abs ( IFT( {FT(img1) FT(img2)} x {FT(img1) FT(img2)} / abs(FT(img1) FT(img2)) ) ).^2
can somebody help me realize the code to do this.
The image on left is when two images are same and o right is when they are different.
Thanksdd.png

Answers (0)

Products

Release

R2014b

Asked:

on 10 Apr 2019

Edited:

on 10 Apr 2019

Community Treasure Hunt

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

Start Hunting!