# Texture Preprocessing Simplification filters for removing fine details from textures ## Purpose - Remove texture artifacts (scales, fur, feathers, noise) - Preserve edges and broad color zones - Prepare textures for cleaner palettization ## Layout ``` preprocessing/ ├── context.md # This file ├── __init__.py # Module exports └── simplifier.py # Bilateral filter implementation ``` ## Scope - In-scope: Edge-preserving texture smoothing - Out-of-scope: Color adjustment, resizing, format conversion ## Entrypoints - `simplify_texture(image, enabled, d, sigma_color, sigma_space)` - Apply bilateral filter ## Dependencies - External: opencv-python, PIL, numpy