Question: 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

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:

Create an image matrix of size 5x5 with random values between 0

  1. a) The output of a 3x3 average filter shown above.

  2. b) The output of a 3x3 median filter.

  3. c) Theoutputofthe3x3Laplacianfiltershownabove.

  4. d) The output of the 3x3 Low-pass filter shown above.

  5. e) City-block distance (D4) from (3,1) to (1,4).

  6. f) Chess board distance from (3,1) to (1,4).

  7. g) and 10. Image matrix rows are x and columns are y coordinates gradient magnitude and gradient orientation.

  8. h) The result of unsharp-masking at image pixel location (2,2).

  9. i) The intensity histogram of the whole image

  10. j) The correlation of f(x,y) with the template defined by mask M.

  11. k) The convolution of f(x,y) with the template defined by mask M.

1 2 1 1/9 1 2 1 11 1 1 1 1 0 1 0 1 -4 | 1 0 1 0 1/16 4 2 1 | 2 1 0 3 2 2 1 0 Mask (M) 1 1 2 1 Average filter Laplacian Low-pass filter of af

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!