Measure image quality NC

4 views (last 30 days)
muath shaikh
muath shaikh on 8 Jan 2015
Commented: Image Analyst on 12 Jan 2021
Hello, I have two images (i and iw) and i want to measure the similarity and dissimailarity between them there is function it is called Normalized Cross Correlation (NCC) Could any body support me in the matlab code for it

Accepted Answer

Image Analyst
Image Analyst on 8 Jan 2015
Normalized cross correlation is performed by normxcorr2(). I'm attaching a demo. As far as I know this is not commonly used to asses image quality. PSNR and SSIM are more commonly used. I'm attaching a PSNR demo. There are functions for them in recent versions of the Image Processing Toolbox.
  1 Comment
Image Analyst
Image Analyst on 12 Jan 2021
You'll notice that my naromxcorr2 demo works with a colored image.
There is now a built in psnr() function. Use that. Use imsplit() if you need to separate the image into individual color channels.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!