Weighted Moving Average, Computer Vision.
moving_average_2d(original_image, kernel_size) # Display the original and smoothed images display('Original Image', original_image) display('Smoothed Image', smoothed_image) cv2.waitKey(0) cv2.destroyAllWindows() else: print("Error: Unable to read the image.") Section 4-Applications in Computer