Difference between revisions of "Aufgaben:Exercise 5.8Z: Falsification of BMP Images"
Line 51: | Line 51: | ||
*The exercise belongs to the chapter [[Digital_Signal_Transmission/Applications_for_Multimedia_Files| "Applications for Multimedia Files"]]. | *The exercise belongs to the chapter [[Digital_Signal_Transmission/Applications_for_Multimedia_Files| "Applications for Multimedia Files"]]. | ||
− | * All images were created with the Windows program "Digital Channel Models & Multimedia" | + | * All images were created with the Windows program "Digital Channel Models & Multimedia". |
Latest revision as of 13:49, 18 October 2022
We assume here the following images in the format 160x120 (pixels):
- the image "White" with the color depth "1 BPP" (one bit per pixel) and
- the image "Earth" with "24 BPP", even if only a few of the $2^{24}$ possible colors are used here.
The image "W1" was created by falsification with a Gilbert–Elliott model using the following parameters:
- $$p_{\rm G} \hspace{-0.1cm} \ = \ \hspace{-0.1cm} 0.001, \hspace{0.2cm}p_{\rm B} = 0.1,\hspace{0.2cm} {\rm Pr}(\rm G\hspace{0.05cm}|\hspace{0.05cm} B)\hspace{-0.1cm} \ = \ \hspace{-0.1cm} 0.1, \hspace{0.2cm} {\rm Pr}(\rm B\hspace{0.05cm}|\hspace{0.05cm} G) = 0.01\hspace{0.05cm}.$$
Thus, we obtain for the mean error probability
- $$p_{\rm M} = \frac{p_{\rm G} \cdot {\rm Pr}({\rm G\hspace{0.05cm}|\hspace{0.05cm} B)}+ p_{\rm B} \cdot {\rm Pr}(\rm B\hspace{0.05cm}|\hspace{0.05cm} G)}{{\rm Pr}(\rm G\hspace{0.05cm}|\hspace{0.05cm} B) + {\rm Pr}(\rm B\hspace{0.05cm}|\hspace{0.05cm} G)} = 0.01 \hspace{0.05cm},$$
and for the error correlation duration
- $$D_{\rm K} =\frac{1}{{\rm Pr}(\rm G\hspace{0.05cm}|\hspace{0.05cm} B ) + {\rm Pr}(\rm B\hspace{0.05cm}|\hspace{0.05cm} G )}-1 \approx 8 \hspace{0.05cm}.$$
The image "W2" was obtained after falsification with the GE parameters
- $$p_{\rm B} = 0.2\hspace{0.05cm},\hspace{0.2cm} {\rm Pr}({\rm G\hspace{0.05cm}|\hspace{0.05cm} B})= 0.01, \hspace{0.2cm} {\rm Pr}(\rm B\hspace{0.05cm}|\hspace{0.05cm} G) = 0.0005\hspace{0.05cm}.$$
The error probability in the state "$\rm G$" was chosen so that the average error probability is $p_{\rm M} = 0.01$.
The two lower images "E3" and "E4" may have been created by falsification with
- the BSC model $(p = 0.01)$,
- that GE model which led to "W1",
- the GE model that led to "W2".
It is your task to clarify this. One of the answers is correct in each case.
Notes:
- The exercise belongs to the chapter "Applications for Multimedia Files".
- All images were created with the Windows program "Digital Channel Models & Multimedia".
Questions
Solution
- $$p_{\rm G} \hspace{-0.1cm} \ = \ \hspace{-0.1cm} \frac{p_{\rm M} \cdot \big[{\rm Pr}({\rm G\hspace{0.05cm}|\hspace{0.05cm} B)}+ {\rm Pr}(\rm B\hspace{0.05cm}|\hspace{0.05cm} G)\big] - p_{\rm B} \cdot {\rm Pr}(\rm B\hspace{0.05cm}|\hspace{0.05cm} G)}{{\rm Pr}(\rm G\hspace{0.05cm}|\hspace{0.05cm} B) } = \frac{ 0.01 \cdot [0.01+0.0005] - 0.2 \cdot 0.0005}{0.01} \hspace{0.15cm}\underline {= 0.05\%}\hspace{0.05cm}.$$
(2) Using the given equation, we obtain:
- $$D_{\rm K} =\frac{1}{{\rm Pr}(\rm G\hspace{0.05cm}|\hspace{0.05cm} B ) + {\rm Pr}(\rm B\hspace{0.05cm}|\hspace{0.05cm} G )}-1 =\frac{1}{0.0105}-1\hspace{0.15cm}\underline {\approx 94.2}\hspace{0.05cm}.$$
(3) The image "White" consists of $160 \cdot 120 = 19200 \ \rm pixels$ and is also described by $19200 \ \rm bits$ because of the color depth $1 \ \rm BPP$.
- With the average bit error probability $p_{\rm M} = 0.01$, $N_{\rm W} \underline{= 192}$ bit errors are expected in both images ("W1" and "W2").
(4) With the same image size and error probability, there are now significantly more bit errors because of the color depth $24 \ \rm BPP$, i.e.
- $$N_{\rm E} = 24 \cdot 192 \ \underline{= 4608}.$$
(5) Answer 1 is correct:
- Image "E3" shows the typical structure of statistically independent errors.
(6) Answer 3 is correct:
- Image "E4" shows a typical burst error structure.
- Here, the GE model with $D_{\rm K} \approx 94$, was used, which was also used for "W2".
- However, since now every single pixel is represented by $24 \ \rm bits$, the average error correlation duration (related to pixels) is only about ${D_{\rm K}}' = 4$.
- The GE model with $D_{\rm K} \approx 8$ (in terms of bits) for a $24 \ \rm BPP$ image would look approximately like the image "E3" based on the BSC model.
- In terms of pixels, this would result in rather statistically independent errors.