# Session 422: Test the actual historical Gaussian and median images

**The teaching example’s median-filter output can be reproduced pixel for pixel; so can its Gaussian output with integer truncation.**

A [2006 Commons upload](https://commons.wikimedia.org/wiki/File:Dead_tree_salt_and_pepper.png) introduces salt-and-pepper noise into the photograph. Companion entries preserve a [Gaussian-filtered image](https://commons.wikimedia.org/wiki/File:Dead_tree_salt_and_pepper_gauss_3x3.png) and [median-filtered image](https://commons.wikimedia.org/wiki/File:Dead_tree_salt_and_pepper_median_3x3.png). A 3 × 3 median with the outer one-pixel border dropped reproduces every grayscale output. The separable Gaussian weights [1,2,1] in each direction, normalized by 16, give exact agreement when rounded **down** rather than to nearest.

We also tested the files as candidate inputs: after an automatic threshold the noisy, Gaussian and median versions recover 11/8, 8/8 and 7/7 book loops, respectively (right/left). The filter identifications apply to the teaching files. No equivalent pixel-for-pixel reconstruction of the book page has been shown.

[Filter results, exactness and candidate scores](filters_422_results.json) · [Code](filters_422.py).
