# Grid resampling

Back to Blog

Create a checkerboard $100 \times 100$ grid of alternating black and white pixels. Resample to smaller $n \times n$ sizes by a Lanczos filter of radius $2 / (100 / n)$. This is a simple test for a resampling algorithm.

You can see a pattern here (the number of valleys keep on incrementing) which continues predictably down until size $65 \times 65$, which is the last image showing more than one color. Here is the result for $65 \times 65$.