https://github.com/lichtso/freeformgradients
WebGL2 based implementation of distance transform and diffusion curves
https://github.com/lichtso/freeformgradients
diffusion-curves distance-transform image-processing webgl2
Last synced: about 1 year ago
JSON representation
WebGL2 based implementation of distance transform and diffusion curves
- Host: GitHub
- URL: https://github.com/lichtso/freeformgradients
- Owner: Lichtso
- License: mit
- Created: 2018-07-11T20:22:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-12T10:13:28.000Z (almost 8 years ago)
- Last Synced: 2025-03-26T11:21:14.052Z (about 1 year ago)
- Topics: diffusion-curves, distance-transform, image-processing, webgl2
- Language: JavaScript
- Size: 5.86 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Free Form Gradients
[This online demo](https://lichtso.github.io/FreeFormGradients/index.html)
is optimized for Firefox and fills transparent areas (alpha channel = 0) with free form color gradients from their edges.
As input you most likely want to use hard edges (disable antialiasing) to prevent semi transparent pixels from spreading.
## Algorithms
### Distance Transform
[GPU-based real-time discrete euclidean distance transforms with precise error bounds](https://wwwcg.in.tum.de/fileadmin/user_upload/Lehrstuehle/Lehrstuhl_XV/Persons/Kraus/visapp09.pdf)
### Diffusion Curves
[A GPU Laplacian Solver for Diffusion Curves and Poisson Image Editing](http://peterwonka.net/Publications/pdfs/2009.SGA.Jeschke.LaplacianSolver.final.pdf)