CodingTrain / CodingTrain/Suggestion-Box
Kuwahara Filtering
- Dominant language
- No language data
- Stars
- 570
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
This algorithm was invented with fixing images with missing pixels.
It however doesn't work that well for that, but what it works well for is art.
[Wikipedia](https://en.wikipedia.org/wiki/Kuwahara_filter)
Kuwahara Filtering works like a blur algorithm.
Here are the needed steps:
1. Imagine a rectangle around each pixel
2. Divide the rectangle into 4 equally sized sectors
3. For each sector get the average color and the color deviation
4. Lastly pick the sector with the smallest deviation and use its color
I've somehow implemented the algorithm, but it is far from acceptable.
Here is the result:
Image before:

And after:

With a bigger texel size **(I didn't implement the texel size computation)**:

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.