<reponame>TroddenSpade/Computer-Vision-notes
import numpy as np
import cv2

I = cv2.imread('isfahan.jpg').astype(np.float64) / 255

# display the original image
cv2.imshow('original', I)
cv2.waitKey()

# creating a box filter
m = 7  # choose filter size

# Now, filter the image
J = cv2.blur(I, (m, m))
cv2.imshow('blurred', J)
cv2.waitKey()

cv2.destroyAllWindows()

import numpy as np
import cv2

I = cv2.imread('isfahan.jpg').astype(np.float64) / 255

# display the original image
cv2.imshow('original', I)
cv2.waitKey()

# creating a box filter
m = 7  # choose filter size

# Now, filter the image
J = cv2.blur(I, (m, m))
cv2.imshow('blurred', J)
cv2.waitKey()

cv2.destroyAllWindows()
# display the original image # creating a box filter # choose filter size # Now, filter the image