Skip to content

Instantly share code, notes, and snippets.

@lucifermorningstar1305
Created January 4, 2020 11:10
Show Gist options
  • Save lucifermorningstar1305/f78884fa435a4a68838d95aba42f1b97 to your computer and use it in GitHub Desktop.
Save lucifermorningstar1305/f78884fa435a4a68838d95aba42f1b97 to your computer and use it in GitHub Desktop.
Mean Filter algorithm
Mean_filter = np.array([[1,1,1], [1,1,1], [1,1,1]])/float(9)
Gm = scipy.signal.convolve2d(gray,Mean_filter,mode='same')
plt.imshow(Gm,cmap='gray')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment