Company: Visa fte
Difficulty: medium
Image Blur Effect You are given a two-dimensional matrix of integers image representing a black and white image, with image[i][j] containing an integer from 0 to 255 to represent the intensity of a pixel at coordinate (i, j) . You are also given a non-negative integer parameter radius . Your task is to apply a blur effect to this image. To apply a blur effect to the image, replace the intensity of each pixel (i, j) with the average value of its original intensity image[i][j] and the mean intensity of its neighboring pixels (defined as neighbors(i, j) ). Pixel (k, l) is included in neighbors(i, j) if it satisfies the conditions abs(i - k) <= radius and abs(j - l) <= radius . Input Format The input consists of: A two-dimensional array of integers image . An integer radius . Output Format Return a two-dimensional array of integers representing the blurred image. Constraints 1 ≤ image.length ≤ 100 1 ≤ image[i].length ≤ 100 0 ≤ image[i][j] ≤ 255 0 ≤ radius ≤ 50 Examples Example 1: Inp