Corr2 function returns NaN

2 views (last 30 days)
Joey Ohmar Aranda
Joey Ohmar Aranda on 3 Nov 2016
I've been trying to correlate two raster using corr2 but unfortunately,one of the two images contain NaN values which makes the result of correlation NaN. Is there a way to ignore these NaN values to get the correlation between images? I believe eliminating these values will not solve the problem because the size of the array will change. Two rasters must have the same dimensions for corr2 to work.

Answers (0)

Community Treasure Hunt

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

Start Hunting!