Corr2 function returns NaN
2 views (last 30 days)
Show older comments
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.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!