dylanebert's picture
initial commit
346b70f
# 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