Deep Learning for Computer Vision, Quiz 1
Consider the following numpy array
Now consider the following operations
Write the value of arr[2]
Consider the following numpy array $$\text{arr} = \begin{bmatrix} 0 & 1 \\ 2 & 3 \\ 4 & 5 \end{bmatrix}$$ Now consider the following operations $$\text{flattened\_arr} = \text{arr.flatten()}$$ $$\text{flattened\_arr[2]} = 10$$ Write the value of arr[2] Consider the following numpy array $$\text{arr} = \begin{bmatrix} 0 & 1 \\ 2 & 3 \\ 4 & 5 \end{bmatrix}$$ Now consider the following operations $$\text{raveled\_arr} = \text{arr.ravel()}$$ $$\text{raveled\_arr[2]} = 20$$ Write the value of arr[2] Consider the grayscale image shown below: $$\begin{bmatrix} 20 & 30 & 25 & 30 & 40 \\ 45 & 10 & 40 & 35 & 20 \\ 15 & 20 & 30 & 25 & 50 \\ 50 & 40 & 35 & 15 & 30 \\ 10 & 35 & 25 & 20 & 45 \end{bmatrix}$$ If a median filter with a $3 \times 3$ neighborhood is applied to this image with a stride of 1 and no padding, \_\_\_\_\_\_\_\_\_\_ will be the value at position $(2, 2)$ in the filtered image? (Assume that the top-left pixel coordinate of output image is addressed as $(1, 1)$)?