Answers for "np array blurring"

0

np array blurring

from scipy.ndimage.filters import gaussian_filter

blurred = gaussian_filter(a, sigma=7)

#if 3d image:
blurred = gaussian_filter(img, sigma=(5,5,0))
Posted by: Guest on July-27-2021

Python Answers by Framework

Browse Popular Code Answers by Language