Question: 4. Create an image matrix of size 5x5 with random values between 0 and 10. Image matrix rows are x and columns are y

4. Create an image matrix of size 5x5 with random values between 0 and 10. Image matrix rows are x and columns are y coordinates and upper left corner is (0, 0). Find the following: 1/9 g) 1 1 1 1 1 1 1 1 1 Average filter 1 0 -4 | 1 1 0 Laplacian af af ' ' 0 1 0 1/16 1 2 1 Low-pass filter a) The output of a 3x3 average filter shown above. b) The output of a 3x3 median filter. c) The output of the 3x3 Laplacian filter shown above. d) The output of the 3x3 Low-pass filter shown above. e) City-block distance (D4) from (3,1) to (1,4). f) Chess board distance from (3,1) to (1,4). 1 2 2 4 1 2 gradient magnitude and gradient orientation. h) The result of unsharp-masking at image pixel location (2,2). i) The intensity histogram of the whole image. j) The correlation of f (x,y) with the template defined by mask M. k) The convolution of f (x,y) with the template defined by mask M. 1 2 12 0 3 2 1 0 Mask (M)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
