Question: Write a function that produces a 2D Gaussian kernel with librarys provided only Hint: np.meshgrid is useful here. import numpy as np from PIL.Image import
Write a function that produces a 2D Gaussian kernel with librarys provided only
Hint: np.meshgrid is useful here.
import numpy as np from PIL.Image import open import matplotlib.pyplot as plt
def gausskernel(sigma): #Create a 3*sigma x 3*sigma 2D Gaussian kernel h=np.array([[1.]]) return h
if 3*sigma = even then do 3*sigma +1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
