If you take a picture in low light conditions using a digital camera, the required longer exposure time will cause a form of image degradation called ``salt and pepper noise''. This causes isolated random pixels in the image to take the wrong value, usually saturating to their maximum (white) or minimum (black) values -- hence the name of the noise.
Which of the following impulse responses would you use for a filter that reduces the noise in images taken under low light conditions? Choose all the possible answers.
and consider the following six 2D impulse responses:
\begin{center}
\begin{tabular}{ccc}
%
(a) & (b) & (c) \\
%
$\begin{bmatrix}
1 & 1 &1\\
1 & 1 & 1\\
1 & 1& 1
\end{bmatrix}$
&
$\begin{bmatrix}
1 & 1 &1\\
0 & 0 & 0\\
-1 & -1& -1
\end{bmatrix}$
&
$\begin{bmatrix}
1 & 0 & -1\\
1 & 0 & -1\\
1 & 0 & -1
\end{bmatrix}$
\\\\
(d) & (e) & (f) \\
$\begin{bmatrix}
-1 & -1 &-1\\
-1 & 8 & -1\\
-1 & -1& -1
\end{bmatrix}$
&
$\begin{bmatrix}
0 & -1 &0\\
-1 & 0 & 1\\
0 & 1& 0
\end{bmatrix}$
&
$\begin{bmatrix}
0 & 1 &0\\
-1 & 0 & 1\\
0 & -1& 0
\end{bmatrix}$
\end{tabular}
\end{center}
\vspace{2em}
Associate to each impulse response the result of filtering the original image with it, choosing among the possibilities shown below. Assume that all images are renormalized before plotting, i.e., the pixels with the smallest values are mapped to black while the pixels with the largest value are mapped to white; all intermediate values are mapped to grayscale levels.
You are given the following $8\times8$ data matrix:
\[
\mathbf{A} =\begin{bmatrix}
80 & 0 & 0 &2 & 0& 0& 0& 0\\
-10 & 0 & 1 &0 &0 &0 &0 &0\\
0 & 0 &0 &0 & 0& 0& 0& 0\\
-2 & 0 &0 &0 & 0& 0&0& 0\\
0 & 0& 0& 0& 0& 0& 0& 0\\
1 &0 &0 & 0& 0& 0& 0& 0\\
0 &0 & 0 & 0& 0& 0& 0& 0\\
0 & 0 &0 &0 & 0& 0& 0& 0
\end{bmatrix}
\]
What is the result if we implement zigzag scan and runlength encoding on matrix $\mathbf{A}$?
Note: each symbol in the runlength encoding is composed of two numbers, where the first number denotes the run length, i.e., the number of zeros before the current value, and the second number is the actual value.
Which of the steps in the JPEG image compression algorithm are lossy, i.e. which steps introduce loss of information. Note: assume that the DCT transform is computed with infinite precision.