I need to implement Gaussian filter 2d with kernel size [3,3] in python, but I do not know how can I do this? I use this method in Matlab:
G = fspecial('gaussian',[3 3],0.5);
Ig = imfilter(watermarkImage,G,'same');
but in python, we have some function like this
blurred_img = gaussian_filter(img, Q, mode='reflect')
that Q
is the std and I do not know how can I produce a blurred image with kernel [3,3]. could you please help me with this issue?