Open tonyfast opened 10 years ago
@kiransamudrala
I just put a new version of SpatialStatsFFT
on the master branch. Before I close this issue, can you check the function to see if it works property. Can you attach an example figure it produces too please.
I cloned the latest version of your statistics code from master page. I tried it on a 3d checkerboard matrix.
load checkerboard.mat [T,xx] = SpatialStatsFFT(H); isocaps(T);
figure, isosurface(T), axis off
I have a question though. When I run the following code I get a quadrant like pattern in the image. Could you tell me why? I am sure it is not the data that is causing. The reason for this pattern is definitely either the way statistics are computed or because of the usage of the post processing that I am doing. Could you help me with this? Thanks.
%% Create Data H = rand(100,100,100); V = rand(100,100,100);
%% Run statistics [T,xx] = SpatialStatsFFT(H,V);
%% Visualize Statistics % A mid section plane of x = 50 is observed sx = floor(size(T,1)/2); sy = []; sz = []; h = slice(subT,sx,sy,sz); alpha('color') set(h,'EdgeColor','none','FaceColor','interp','FaceAlpha','interp')
A front view of the same image is here:
Why do we see those quardrants?
@kiransamudrala
Please see this article to better understand the functionality of the Fourier Shift in the Spatial Statistics.
I would like you to check the default visualization for the SpatialStatistics. Please sync up the master
branch and run QuickStart.m
. This should do the trick. I have made an article for this function too.
Currently, you have to add a path to the functions folder which is probably unnecessary.