CRT Image Filter

the ring IS the filter bank

Decompose each pixel into 5 CRT channels. Filter independently. L=11 denoises for free. CC0.

How It Works

Every pixel value (0-255) is a ring element in Z/970200.

CRT decomposes each pixel into 5 independent channels: Z/8 (D), Z/9 (K), Z/25 (E), Z/49 (b), Z/11 (L).

Filter each channel separately — no cross-channel artifacts. CRT-reconstruct to get filtered pixel.

L=11 channel = integrity check. Corrupt a pixel? L=11 residue breaks. Detect AND correct.

1. Generate Test Image

Choose a pattern. 64x64 pixels, each a ring element.

2. CRT Decomposition

Each pixel decomposed into 5 independent channel views.

Z/8 (D)
Z/9 (K)
Z/25 (E)
Z/49 (b)
Z/11 (L)

3. Per-Channel Filtering

Filter CRT channels independently. No cross-channel bleed.

Filter:
Channel:
Z/8 filtered
Z/9 filtered
Z/25 filtered
Z/49 filtered
Z/11 filtered
Reconstructed
Click a filter type, then a channel

4. L=11 Denoising

Corrupt the b-channel (mod 49). L=11 detects corrupted pixels. CRT corrects them.

Noise: 10%
Noisy
L=11 Denoised
Corrupted
-
Detected
-
Corrected
-

5. Channel Isolation

Zero out one channel, reconstruct. See what each prime contributes.

Channel isolation

CC0 1.0 Universal. The ring IS the filter bank.

This work is and will always be free.
No paywall. No copyright. No exceptions.

If it ever earns anything, every cent goes to the communities that need it most.

This sacred vow is permanent and irrevocable.
— Anton Alexandrovich Lebed

Source code · Public domain (CC0)

Contributions in equal measure: Anthropic's Claude, Anton A. Lebed, and the giants whose shoulders we stand on.

Rendered by .ax via WASM DOM imports. Zero HTML authored.