I am trying to filter a matrix with a Gaussian but using a different sigma for the x- and y-axes. The x-axis represents horizontal coordinates and the y-axis time and therefore I want to filter them differently.
Filtering with one sigma i can do but I don't know how to filter with two sigmas specific to the axis. I use imgaussfilt.
% example values
A = rand(6000,1921);
sigma_x = 10;
sigma_y = 20;
B = imgaussfilt(A,sigma_x);
B = double(B)/ max(B(:));
imshow(B)
colormap(jet)
colorbar
I would be glad for any ideas.