I want to get a Gaussian window of size m rows and n columns.
I know how to get to 1-dimension. i.e below.
from scipy.stats import multivariate_normal
multivariate_normal(mean=[1, 5], cov=(2.5))
Now I want two dimensions of a matrix. Purpose: I want fit this filter on top an image. the green color is a matrix of an image. Blue circle is a Gaussian filter. I am not sure how to get the blue window.
I am thinking to apply something like this -
gw = multivariate_normal(mean=[1, 5], cov=(2.5))
for i in range(image.shape[0):
image_gauss_window[i:] = gw
Can you give a way to find out the Gaussian filter for an image? I see opencv many functions apply a Gaussian blur to an image. But here I want the filter before applying/convolving on top of an image.

