Apply a Gaussian blur to an image. **Example:** A 3x3 image with pixel values [[1,2,3],[4,5,6],[7,8,9]] and a kernel size of 3. **Constraints:** Kernel size must be odd and greater than 1.
Test Cases
Test Case 1
Input:
[[1,2,3],[4,5,6],[7,8,9]]Expected:
[[3.0,4.0,5.0],[4.0,5.0,6.0],[5.0,6.0,7.0]]Test Case 2
Input:
[[10,20,30],[40,50,60],[70,80,90]]Expected:
[[30.0,40.0,50.0],[40.0,50.0,60.0],[50.0,60.0,70.0]]+ 3 hidden test cases