Learn / Computer vision

2024

Color Image Quantization

Video-frame compression using k-nearest neighbours and a shared colour palette.

PythonkNNComputer VisionVideo Processing
KEY SIGNALGlobal k-colour palette
Technical visualization for Color Image Quantization
01

THE CHALLENGE

What needed to change.

Quantising frames independently can create inconsistent palettes and visual flicker across a sequence.

02

THE APPROACH

How I structured the solution.

I used k-nearest neighbours to attribute pixels to a compact palette and maintained that palette across frames.

03

THE OUTCOME

What the work demonstrated.

The project explored the trade-off between visual fidelity, palette stability and in-memory representation.