The figure below shows a one-dimensional function, \( f \), and a filter \( w \). Consider \( f \) is padded with zeros on both sides. Which one among the following will be the final convolution output of \( f \) with \( w \) after the padding zeros are removed from the output? \[ f = [0 \quad 0 \quad 1 \quad 0 \quad 0], \quad w = [1 \quad 2 \quad 3] \]
The convolution of a 1D function \( f \) with a filter \( w \) (with zero-padding) is calculated by flipping the kernel \( w \) and sliding it across the zero-padded input \( f \).
Step-by-step:
Given:
\[ f = [0 \quad 0 \quad 1 \quad 0 \quad 0] \quad {(with zero-padding already included)} \] \[ w = [1 \quad 2 \quad 3] \quad \Rightarrow \quad {flipped } w = [3 \quad 2 \quad 1] \] Now compute the convolution:
Position 1: \( [0,0,0] \cdot [3,2,1] = 0 \)
Position 2: \( [0,0,1] \cdot [3,2,1] = 1 \)
Position 3: \( [0,1,0] \cdot [3,2,1] = 2 \)
Position 4: \( [1,0,0] \cdot [3,2,1] = 3 \)
Position 5: \( [0,0,0] \cdot [3,2,1] = 0 \)
So the full convolution result is:
\[ [0 \quad 0 \quad 1 \quad 2 \quad 3 \quad 0 \quad 0] \] Now remove the padded outputs from the beginning and end (one on each side), final result:
\[ \boxed{[0 \quad 0 \quad 1 \quad 2 \quad 3]} \] Final Answer: (C)
Here are two analogous groups, Group-I and Group-II, that list words in their decreasing order of intensity. Identify the missing word in Group-II.
Abuse \( \rightarrow \) Insult \( \rightarrow \) Ridicule
__________ \( \rightarrow \) Praise \( \rightarrow \) Appreciate
The error matrix resulting from randomly selected test pixels for a classified image is given below.
The Producer’s accuracy of class 1 is % (rounded off to 1 decimal place).
Reference Data | |||||
---|---|---|---|---|---|
Class 1 | Class 2 | Class 3 | Class 4 | ||
Classified Data | Class 1 | 320 | 8 | 7 | 3 |
Class 2 | 12 | 270 | 6 | 2 | |
Class 3 | 9 | 6 | 410 | 5 | |
Class 4 | 14 | 2 | 3 | 350 |
The brightness values of four pixels in the input image are shown in the table below. The image is rectified using nearest neighbor intensity interpolation, and the pixel at location (5, 4) in the output image is to be filled with the value from coordinate (5.3, 3.7) in the input image. The brightness value of the pixel at location (5, 4) in the rectified output image is 11. (Answer in integer)
Location of pixels in input image (Row, Column) | Brightness Value |
---|---|
(5, 3) | 9 |
(5, 4) | 11 |
(6, 3) | 14 |
(6, 4) | 12 |
The hue, intensity and saturation values for a pixel are \( H = 0.5 \, {rad} \), \( S = 0.5 \), and \( I = 0.3 \), respectively. If the pixel is converted to RGB color model, then the value of the green pixel would be __________ (rounded off to 2 decimal places).