Implement the algorithm presented in 1 by CUDA. You can use the code like below to get a pencil drawing production:
./gpu_pencil_draw <input> <pencil image>
or run cpu version:
./cpu_pencil_draw <input> <pencil image>
- demo 1
- demo 2
- Lu C, Xu L, Jia J. Combining sketch and tone for pencil drawing production[C]//Proceedings of the Symposium on Non-Photorealistic Animation and Rendering. Eurographics Association, 2012: 65-73.
- GitHub repo: candycat1992/PencilDrawing