Running a Gaussian filter over image with static sigma value is easy:
scipy.ndimage.gaussian_filter(input, sigma)
But how to do this with a sigma value that is different for each pixel? For example, I might have another NumPy array of the same size that indicates what sigma to use for each pixel.