Explore Library
Code QuizIntermediate

Blurring with an Averaging Kernel

Spot why this averaging blur brightens the image instead of smoothing it.

Codepython
import cv2, numpy as np

kernel = np.ones((3, 3), np.float32)
blur = cv2.filter2D(img, -1, kernel)

What is the bug in this averaging blur?