spatial correlation of 3d matrices
10 views (last 30 days)
Show older comments
Hi, I'm trying to compute the similarity of two 3d images. Is there any way to get the spatial correlation of these two images? Many thanks!
0 Comments
Accepted Answer
Matt J
on 12 Oct 2014
Edited: Matt J
on 12 Oct 2014
How about
ifftn(fftn(Image1).*conj(fftn(Image2)),'symmetric')
with zero-padding if appropriate.
5 Comments
Matt J
on 5 Jun 2017
Edited: Matt J
on 5 Jun 2017
Hi efe,
fftshifting should not be necessary.
Viewing the 3D correlation map - there are a variety of 3D image viewers offered on the File Exchange. You might check there.
Avoiding contributions of zero. Crop them out? I think you can also do effectively the same thing by using the fft syntax
Y = fftn(X,sz)
were sz covers the part of the image you want to include.
Naomi Krauzig
on 3 Apr 2020
Hi Matt in case the question is still open there is a 3d version available, it's called spatialcorr3 https://it.mathworks.com/matlabcentral/fileexchange/65640-spatialcorr3-varargin from Ankur Kumar.
All the best,
Naomi
More Answers (0)
See Also
Categories
Find more on Geometric Transformation and Image Registration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!