Structure-Texture Filter
Strip texture while keeping edges and shapes: bilateral texture filtering or L0 gradient smoothing, edge-preserving and halo-free. Classic CV, in-browser.
Structure-texture decomposition pulls the meaningful structure (object edges, contours, flat regions) out of a busy, textured image while discarding repetitive fine detail. It is the modern, edge-preserving alternative to plain blurring. The foundation of detail abstraction, cartoon/flat-shading looks, edge-aware enhancement, and pre-processing for segmentation. Upload a photo and choose bilateral texture filtering (keeps structure, removes texture) or L0 gradient smoothing (flattens regions while sharpening salient edges).
How to Use Structure-Texture Filter
- Upload an image: Upload one of the formats listed by the tool (JPG, PNG, WebP) and wait for the local preview.
- Adjust settings and process: Adjust the available controls, then run the selected image processing workflow in your browser.
- Review and download: Review the result, then download it in one of the formats offered by this tool.
Frequently asked questions
What is structure-texture decomposition?
It splits an image into a smooth structure layer (edges, shapes, flat regions) and a texture layer (fine repetitive detail), keeping the former. Unlike Gaussian blur it preserves strong edges, so shapes stay crisp while texture melts away.
Bilateral texture filter vs L0 smoothing?
Bilateral texture filtering (Cho et al.) is purpose-built to remove texture while keeping structure and is great for de-texturing photos. L0 gradient minimization (Xu et al.) aggressively flattens regions and sharpens the few salient edges, giving a posterized-but-sharp, vector-like look.
What is it used for?
Detail abstraction and cartoon/flat looks, edge-aware enhancement, removing fabric/skin/wall texture before segmentation or OCR, and as a clean pre-filter for edge and contour detection.
Is my image uploaded anywhere?
No. It runs entirely in your browser via OpenCV compiled to WebAssembly.