File size: 701 Bytes
346b70f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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