The version 2 codebase for converting photo to sketch, implemented according to the paper Lu, Cewu, Li Xu and Jiaya Jia. “Combining sketch and tone for pencil drawing production.” Expressive (2012).
MATLAB R2012a
example.m: an example script showing how to use the functions
gradient.m: function for computing the gradient
drawLines.m: the core function of the algorithm
road_sign.png: example image used in example.m
Original image:
The sketch / line-drawing: