Complete the code to import the Gaussian blur function from the OpenCV library.
from cv2 import [1]
The GaussianBlur function is used to apply Gaussian smoothing to images.
Complete the code to apply Gaussian blur with a 5x5 kernel to the image stored in variable 'img'.
blurred_img = GaussianBlur(img, [1], 0)
The kernel size (5, 5) means the filter uses a 5 by 5 pixel window for smoothing.
Fix the error in the code to correctly apply Gaussian blur with sigmaX set to 1.5.
blurred_img = GaussianBlur(img, (5, 5), [1]=1.5)
The parameter sigmaX controls the Gaussian kernel standard deviation in the X direction.
Fill both blanks to create a dictionary comprehension that maps each pixel intensity to its smoothed value if the intensity is greater than 100.
{pixel: [1] for pixel in pixels if pixel [2] 100}The comprehension maps each pixel to its blurred value if the pixel intensity is greater than 100.
Fill all three blanks to create a dictionary comprehension that maps each pixel's intensity squared to its blurred value if the intensity is less than 50.
{pixel[1]2: [2] for pixel in pixels if pixel [3] 50}The comprehension squares the pixel intensity for the key, uses the blurred image value, and filters pixels less than 50.
