Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using PYTHON 1. {100 points} The mechanics of spacial filtering consist of a neighbourhood (typically a small rectangular called 'filter' or 'mask), and a predefined

using PYTHON

image text in transcribed

1. {100 points} The mechanics of spacial filtering consist of a neighbourhood (typically a small rectangular called 'filter' or 'mask), and a predefined operation that is performed on the image pixels encompassed by the filter. At every step, spacial filtering changes the grey level value of the pixel overlapped by the centre of the mask. A processed or filtered image is generated as the centre of the mask visits each pixel in the input image. (a) {5 points} Draw a 4-bit HIGH contrast picture A of size 5 x 4 storing the second-last (or penul- timate) digit of your student number?, e.g. student 117200034 would draw number 3. Please, notice that A is NOT a black & white image, you must use at least 3 gray levels (b) {5 points} Justify your answer: which range of gray level values did you use? Why? (c) {10 points} Draw a box filter BF of size 3 x 3 (d) {5+5 points} Detail the first 2 steps of the convolution process to produce B=conv(A,BF)2 (e) {25+ (5+5) points} Process you image A with a 3 x 3 Statistic Filter SF%; draw C=conv(A, SF)4 and explain the first 2 steps of the convolution (f) {5 points} Picture D is an 3-bit black picture of size 5 x 5 with a white dot (only 1 white pixel). Draw D (g) {5 + 25 points} Picture E is the result of the convolution of D with an Edge Detection Filter EDF: give a 2D EDF, and draw E=convolution(D, EDF)5 1. {100 points} The mechanics of spacial filtering consist of a neighbourhood (typically a small rectangular called 'filter' or 'mask), and a predefined operation that is performed on the image pixels encompassed by the filter. At every step, spacial filtering changes the grey level value of the pixel overlapped by the centre of the mask. A processed or filtered image is generated as the centre of the mask visits each pixel in the input image. (a) {5 points} Draw a 4-bit HIGH contrast picture A of size 5 x 4 storing the second-last (or penul- timate) digit of your student number?, e.g. student 117200034 would draw number 3. Please, notice that A is NOT a black & white image, you must use at least 3 gray levels (b) {5 points} Justify your answer: which range of gray level values did you use? Why? (c) {10 points} Draw a box filter BF of size 3 x 3 (d) {5+5 points} Detail the first 2 steps of the convolution process to produce B=conv(A,BF)2 (e) {25+ (5+5) points} Process you image A with a 3 x 3 Statistic Filter SF%; draw C=conv(A, SF)4 and explain the first 2 steps of the convolution (f) {5 points} Picture D is an 3-bit black picture of size 5 x 5 with a white dot (only 1 white pixel). Draw D (g) {5 + 25 points} Picture E is the result of the convolution of D with an Edge Detection Filter EDF: give a 2D EDF, and draw E=convolution(D, EDF)5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions