Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.1.0
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