Skip to content
Snippets Groups Projects
Commit e811988c authored by Eric Wait's avatar Eric Wait
Browse files

Fixed local Gaussian version to handle 2-D sigmas

parent 3483da10
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,18 @@ function arrayOut = Gaussian(arrayIn,sigmas,numIterations,device,suppressWarning
numIterations = 1;
end
arrayOut = zeros(size(arrayIn),'like',arrayIn);
for t=1:size(arrayIn,5)
for c=1:size(arrayIn,4)
for i=1:numIterations
arrayOut(:,:,:,c,t) = imgaussfilt3(arrayIn(:,:,:,c,t),sigmas);
if (sigmas(3)~=0)
arrayOut(:,:,:,c,t) = imgaussfilt3(arrayIn(:,:,:,c,t),sigmas);
else
for z=1:size(arrayIn,3)
arrayOut(:,:,z,c,t) = imgaussfilt(arrayIn(:,:,z,c,t),sigmas(1:2));
end
end
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment